Skip to content

Commit

Permalink
Check signedMessage if signature doesn't match
Browse files Browse the repository at this point in the history
  • Loading branch information
thrilok209 committed Jul 17, 2024
1 parent 2999693 commit a85466e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/v2/accounts/default/implementation_default.sol
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ contract Record is Constants {
} else {
address signer = ECDSA.recover(hash, signature);

require(_auth[signer], "invalid-EIP-1271-signature");
if (!_auth[signer]) {
require(_signedMessages[hash], "invalid-EIP-1271-signature");
}
}

return EIP1271_MAGIC_VALUE;
Expand Down

0 comments on commit a85466e

Please sign in to comment.