Skip to content
Open
Changes from all commits
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
1 change: 1 addition & 0 deletions test/rescue/RescuerTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ contract RescuerTest is Test {
uint withdrawal
) public {
vm.assume(receiver.code.length == 0);
vm.assume(uint160(address(receiver)) > 100); // Ensure no precompile
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that we don't use forge-std's assumeNoPrecompile() functionality as the current forge-std version does not know about newly introduced precompiles. Manually blocking the beginning of the address space is simpler.

vm.assume(balance >= withdrawal);

// Let rescuer have ETH balance.
Expand Down
Loading