Datapunk

Results 4 comments of Datapunk

@jimmychu0807 I agree that staticcall with gas() call directly is pretty safe, given it does not allow state modifications. that being said, if we really want to preserve 2000 gas,...

@jimmychu0807 do you minding experimenting calling gasleft() inside of assembly, and let me know what happens? thanks

oops, then have to do something like: ``` uint256 gasToUse = gasleft() - 2000; assembly { let gasForCall := gasToUse success := staticcall(gasForCall, 7, mIn, 96, mIn, 64) } ```...