Skip to content

Commit

Permalink
Support foundry v1.0 (#5511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx authored Feb 15, 2025
1 parent f281e98 commit 9586aaf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/erc4626-tests
Submodule erc4626-tests updated 1 files
+12 −5 ERC4626.test.sol
2 changes: 1 addition & 1 deletion lib/halmos-cheatcodes
Submodule halmos-cheatcodes updated 1 files
+14 −0 src/SVM.sol
3 changes: 3 additions & 0 deletions test/utils/math/Math.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ contract MathTest is Test {
assertEq(xyLo, qdRemLo);
}

/// forge-config: default.allow_internal_expect_revert = true
function testMulDivDomain(uint256 x, uint256 y, uint256 d) public {
(uint256 xyHi, ) = _mulHighLow(x, y);

Expand All @@ -216,6 +217,7 @@ contract MathTest is Test {
}

// MOD EXP
/// forge-config: default.allow_internal_expect_revert = true
function testModExp(uint256 b, uint256 e, uint256 m) public {
if (m == 0) {
vm.expectRevert(stdError.divisionError);
Expand All @@ -236,6 +238,7 @@ contract MathTest is Test {
}
}

/// forge-config: default.allow_internal_expect_revert = true
function testModExpMemory(uint256 b, uint256 e, uint256 m) public {
if (m == 0) {
vm.expectRevert(stdError.divisionError);
Expand Down

0 comments on commit 9586aaf

Please sign in to comment.