From 99ee13e59815f5a5f3652ef412479d05a9e3ed0f Mon Sep 17 00:00:00 2001 From: 0xtekgrinder <0xtekgrinder@protonmail.com> Date: Mon, 11 Dec 2023 08:50:38 -0500 Subject: [PATCH] tests: replace assume by bound --- test/fuzz/MockAgEUR.t.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/fuzz/MockAgEUR.t.sol b/test/fuzz/MockAgEUR.t.sol index a222f65..f32a868 100644 --- a/test/fuzz/MockAgEUR.t.sol +++ b/test/fuzz/MockAgEUR.t.sol @@ -24,8 +24,9 @@ contract MockAgEURFuzzTest is Test { } function testMintTransfer(uint256 _amount, uint256 _toTransfer) public { - vm.assume(_amount <= 1000000); - vm.assume(_toTransfer <= _amount); + _amount = bound(_amount, 0, 1000000); + _toTransfer = bound(_toTransfer, 0, _amount); + token.mint(alice, _amount); assertEq(token.balanceOf(alice), _amount); assertEq(token.balanceOf((bob)), 0);