Skip to content

Commit 03759b1

Browse files
author
Rahul Maganti
committed
evm: use bound instead of assume
1 parent 8c95b29 commit 03759b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

evm/test/RateLimit.t.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ contract TestRateLimit is Test, IRateLimiterEvents {
918918
uint256 totalAmt = (type(uint64).max) / (10 ** decimals);
919919
// avoids the ZeroAmount() error
920920
// cannot transfer more than what's available
921-
vm.assume(transferAmt > 0 && transferAmt <= totalAmt);
921+
transferAmt = bound(transferAmt, 1, totalAmt);
922922
// this ensures that the transfer is always queued up
923923
vm.assume(limitAmt < transferAmt);
924924

evm/test/TrimmedAmount.t.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ contract TrimmingTest is Test {
316316
uint256 untrimmedAmt = trimmedAmt.untrim(fromDecimals);
317317
uint256 untrimmedAmt2 = trimmedAmt2.untrim(fromDecimals);
318318

319-
// trimming is the left inverse of trimming
319+
// trimming is the left inverse of untrimming
320320
// invariant: forall (x: TrimmedAmount, fromDecimals: uint8, toDecimals: uint8),
321321
// (x.amount <= type(uint64).max)
322322
// => (trim(untrim(x)) == x)

0 commit comments

Comments
 (0)