Skip to content

Commit d0674a1

Browse files
committed
add forge config to allow internal expect revert in tests
1 parent f337815 commit d0674a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/libraries/SignatureValidator.t.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ contract SignatureValidatorTest is Test {
4545
assertFalse(SignatureValidator.validateSignature(vm.addr(walletAdminPrivateKey), otherDigest, signature));
4646
}
4747

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

60+
/// forge-config: default.allow_internal_expect_revert = true
5961
function testEIP712WithEmptySignature() public {
6062
bytes memory signature;
6163
// will be reverted in OZ ECDSA lib

0 commit comments

Comments
 (0)