File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ contract SignatureChecker is Ownable {
1010 mapping (address => bool ) public isNotary;
1111
1212 /// valid digests for a given address
13- mapping (address => bytes32 ) public digests;
13+ mapping (bytes32 => address ) public digests;
1414
1515 /// @notice Error for invalid signatures
1616 error InvalidSignature ();
@@ -80,11 +80,13 @@ contract SignatureChecker is Ownable {
8080 if (recoveredSigner != signer) {
8181 revert InvalidSignature ();
8282 }
83- if (digests[msg .sender ] == digest) {
83+
84+ // TODO(WJ 2025-02-20): Should check for any sender.
85+ if (digests[digest] != msg .sender ) {
8486 revert DuplicateProof ();
8587 }
8688
87- digests[msg . sender ] = digest ;
89+ digests[digest ] = msg . sender ;
8890 return true ;
8991 }
9092}
You can’t perform that action at this time.
0 commit comments