Skip to content

Commit

Permalink
fix: use require for sigutils
Browse files Browse the repository at this point in the history
  • Loading branch information
ypatil12 committed Oct 10, 2024
1 parent 010f883 commit 0b93d43
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/contracts/mixins/SignatureUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ abstract contract SignatureUtils is ISignatureUtils {

/// @dev Helper for checking if a signature is valid, reverts if not valid.
function _checkIsValidSignatureNow(address signer, bytes32 signableDigest, bytes memory signature) internal view {
if (!signer.isValidSignatureNow(signableDigest, signature)) {
revert InvalidSignature();
}
require(
signer.isValidSignatureNow(signableDigest, signature),
InvalidSignature()
);
}
}

0 comments on commit 0b93d43

Please sign in to comment.