From 94dc31a05663b86847d0d87c5c076027b264aada Mon Sep 17 00:00:00 2001 From: Cristovao Honorato Date: Thu, 26 Oct 2023 10:23:44 +0200 Subject: [PATCH] Consistently return hash from moduleTxSignedBy() --- contracts/signature/SignatureChecker.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/signature/SignatureChecker.sol b/contracts/signature/SignatureChecker.sol index 6d55a4f3..21d1d145 100644 --- a/contracts/signature/SignatureChecker.sol +++ b/contracts/signature/SignatureChecker.sol @@ -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));