hard20 pts · first answer countsblockchain-fundamentalsgassolidity
Why the first storage write costs most
In a gas review, setting a storage slot from 0 to a non-zero value costs about 20,000 gas, while changing an already non-zero slot costs much less. Which design choice uses this?
Discussion 0
Join free to post in the discussion.
Related questions
- What gas measuresBlockchain Developer
- storage, memory, calldataBlockchain Developer
- Why emit eventsBlockchain Developer
- What msg.sender isBlockchain Developer
- What links one block to the nextBlockchain Developer
- The account nonceBlockchain Developer
- Wei and etherBlockchain Developer
- view vs pureBlockchain Developer