-
-
Save marekkirejczyk/b6210bfd9a1bc968ff1db8fe97ffec57 to your computer and use it in GitHub Desktop.
execute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function execute(...) public returns (bytes32) { | |
uint256 startingGas = gasleft(); | |
... | |
to.call.value(...)(...); | |
... | |
uint256 gasUsed = startingGas.sub(gasleft()); | |
refund(gasUsed, gasPrice, gasToken); | |
return ...; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment