From 063c6864f429389c359caefd40bf591027f9c43b Mon Sep 17 00:00:00 2001 From: nvsriram Date: Fri, 21 Feb 2025 15:26:45 -0500 Subject: [PATCH] Fix forge tests `call didn't revert at a lower depth` failure --- evm/test/TrimmedAmount.t.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/evm/test/TrimmedAmount.t.sol b/evm/test/TrimmedAmount.t.sol index 5878ecbaf..8df2331f2 100644 --- a/evm/test/TrimmedAmount.t.sol +++ b/evm/test/TrimmedAmount.t.sol @@ -67,6 +67,7 @@ contract TrimmingTest is Test { } } + /// forge-config: default.allow_internal_expect_revert = true function testAddOperatorDecimalsNotEqualRevert() public { uint8 decimals = 18; uint8 decimalsOther = 3; @@ -134,6 +135,7 @@ contract TrimmingTest is Test { } } + /// forge-config: default.allow_internal_expect_revert = true function testSubOperatorOverflow() public { uint8[2] memory decimals = [18, 3]; @@ -263,6 +265,7 @@ contract TrimmingTest is Test { assertEq(expectedTrimmedSub.getDecimals(), trimmedSub.getDecimals()); } + /// forge-config: default.allow_internal_expect_revert = true function testFuzz_SubOperatorWillOverflow( uint8 decimals, uint256 amtLeft,