Skip to content

Commit 9586aaf

Browse files
authored
Support foundry v1.0 (#5511)
1 parent f281e98 commit 9586aaf

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

lib/erc4626-tests

lib/halmos-cheatcodes

test/utils/math/Math.t.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ contract MathTest is Test {
204204
assertEq(xyLo, qdRemLo);
205205
}
206206

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

@@ -216,6 +217,7 @@ contract MathTest is Test {
216217
}
217218

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

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

0 commit comments

Comments
 (0)