Skip to content

Commit

Permalink
feat: gas comment
Browse files Browse the repository at this point in the history
  • Loading branch information
GalloDaSballo committed Oct 15, 2024
1 parent b561edc commit 1952cc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/SafeCallWithMinGas.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ contract SafeCallWithMinGasTests is Test {

safeCallWithMinGas(address(0x123123123), gas, value, theData);
}

function test_basic_contractData(uint256 gas, uint256 value, bytes memory theData) public {
vm.assume(gas < 30_000_000);
vm.assume(gas > 50_000 + theData.length * 2_100);
vm.assume(gas > 50_000 + theData.length * 2_100); /// @audit Approximation
FallbackRecipient recipient = new FallbackRecipient();
// Call to non existent succeeds

Expand Down

0 comments on commit 1952cc5

Please sign in to comment.