Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evm: add fuzz tests #239

Merged
merged 18 commits into from
Mar 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
evm: use bound in place of vm.assume
  • Loading branch information
Rahul Maganti committed Mar 15, 2024
commit 0c69f0ea7aee1e7827055a26c9944f7baf19161c
4 changes: 2 additions & 2 deletions evm/test/RateLimit.t.sol
Original file line number Diff line number Diff line change
@@ -953,8 +953,8 @@ contract TestRateLimit is Test, IRateLimiterEvents {
}

function testFuzz_inboundRateLimitShouldQueue(uint256 inboundLimitAmt, uint256 amount) public {
vm.assume(amount > 0 && amount <= type(uint64).max);
vm.assume(inboundLimitAmt < amount);
amount = bound(amount, 1, type(uint64).max);
inboundLimitAmt = bound(amount, 0, amount - 1);

address user_B = address(0x456);