Allow return data length >= 32 in SignatureChecker (#4038)

Co-authored-by: Francisco Giordano <fg@frang.io>
pull/4074/head
Harshit sharma 2 years ago committed by GitHub
parent d5581531de
commit b4d765b130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      .changeset/warm-masks-obey.md
  2. 2
      contracts/utils/cryptography/SignatureChecker.sol

@ -0,0 +1,5 @@
---
'openzeppelin-solidity': minor
---
`SignatureChecker`: Allow return data length greater than 32 from EIP-1271 signers.

@ -44,7 +44,7 @@ library SignatureChecker {
abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
);
return (success &&
result.length == 32 &&
result.length >= 32 &&
abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
}
}

Loading…
Cancel
Save