Timeline for How to know, inside the contract function, the amount of gas that will be refunded in the end
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 13:01 | history | edited | CommunityBot |
replaced http://ethereum.stackexchange.com/ with https://ethereum.stackexchange.com/
|
|
May 13, 2016 at 1:18 | comment | added | eth♦ | @NMassart Simulation can be done, but you're correct that contracts can't retrieve data. | |
May 12, 2016 at 21:02 | comment | added | Nicolas Massart | Can we simulate the contract outside the blockchain with current input values and retrieve the simulated amount of gas used into the smart contract? (Note this is a newbee question as I don't even know if you can get data from outside the blockchain in a contract...) | |
May 12, 2016 at 18:08 | comment | added | eth♦ | Nick said it well, currently "There's no way to know the value of the EVM's refund counter from inside the EVM". Seems like a reasonable feature request to propose. | |
May 12, 2016 at 14:43 | comment | added | Oleksii Matiiasevych |
delete myArray is just an example of an operation that results in a gas refund. In my real cases, there is lots of different logic that may, or not, result in a refund.
|
|
May 12, 2016 at 9:01 | history | answered | eth♦ | CC BY-SA 3.0 |