Skip to content

Commit

Permalink
Consistently return hash from moduleTxSignedBy()
Browse files Browse the repository at this point in the history
  • Loading branch information
cristovaoth committed Oct 27, 2023
1 parent f3211ac commit 94dc31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/signature/SignatureChecker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ abstract contract SignatureChecker {
return
_isValidContractSignature(signer, hash, data[start:end])
? (hash, signer)
: (hash, address(0));
: (bytes32(0), address(0));
} else {
bytes32 hash = moduleTxHash(data[:end], salt);
return (hash, ecrecover(hash, v, r, s));
Expand Down

0 comments on commit 94dc31a

Please sign in to comment.