0

Most of gas refund operation aren’t available immediately, but instead increase the refund counter (which if I understand correctly is refunded not after the end of contract creation or call by contract but is instead refunded after the full end of the transaction).

I already found the 2300 stipend given for a transaction transferring funds… But is there anything else ?

user2284570
  • 1,008
  • 1
  • 12
  • 30
  • AFAIK all refund operations are done at the end, and the 2300 gas stipend is unrelated to refund operations. – Ismael Aug 06 '19 at 20:35
  • @Ismael but like normal refunds it’s paid up‑front. I was meaning operation which behaves like the call stipend… – user2284570 Aug 06 '19 at 22:15
  • Gas stipend is the gas limit set by solidity compiler when you invoke transfer or send, it is not an extra cost over the regular CALL opcode used underneath. – Ismael Aug 07 '19 at 14:52
  • 1
    @Ismael no. Calling a contract with a non zero value from an other contract involves an additional up‑front cost of 9000 gas (which is minored by the stipend in the child contract). – user2284570 Aug 08 '19 at 13:27

0 Answers0