basic ERC20 and an airdrop function in it.
Called yesterday, 328 holders with different amounts, 8.3m gasValue
called today, 328 holders, different amounts, 3.6m gasValue, so the second airdrop costs half of the first one.
Why? O_o
updating a storage value is cheaper than setting it for the first time
So it was to the same guys? Its then the storage for balances that nmake up the difference, I believe.
Changing a value from 0 to a value costs around 21k gas while changing from a non zero value to another value costs around 5k gas (check yellow paper for exact costs of sstore)
Обсуждают сегодня