Skip to content

Commit

Permalink
add forge config to allow internal expect revert in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alex0207s committed Feb 3, 2025
1 parent f337815 commit d0674a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/libraries/SignatureValidator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ contract SignatureValidatorTest is Test {
assertFalse(SignatureValidator.validateSignature(vm.addr(walletAdminPrivateKey), otherDigest, signature));
}

/// forge-config: default.allow_internal_expect_revert = true
function testEIP712WithWrongSignatureLength() public {
uint256 v = 1;
uint256 r = 2;
Expand All @@ -56,6 +57,7 @@ contract SignatureValidatorTest is Test {
SignatureValidator.validateSignature(vm.addr(userPrivateKey), digest, signature);
}

/// forge-config: default.allow_internal_expect_revert = true
function testEIP712WithEmptySignature() public {
bytes memory signature;
// will be reverted in OZ ECDSA lib
Expand Down

0 comments on commit d0674a1

Please sign in to comment.