Content pfp
Content
@
0 reply
0 recast
0 reaction

Steve pfp
Steve
@stevedylandev.eth
Solidity devs, need your help confirming something: Let’s say I have 100 ERC721 tokens that have a custom uint8 state, and I want to update that state by -1 for all tokens at once. Would you: A. Loop over in the contract with high gas estimation B. Loop on the client sending lots of smaller transactions
3 replies
1 recast
2 reactions

Michael Amadi pfp
Michael Amadi
@michaels
Transaction has a 21k gas overhead so doing it in the contract would be cheaper since you just pay the 21k gas overhead once
1 reply
0 recast
0 reaction

Steve pfp
Steve
@stevedylandev.eth
Interesting, what about scaling? Like if I wanted to keep minting NFTs and eventually get to something crazy like 10k? Not saying that’s the plan but trying to think ahead
1 reply
0 recast
1 reaction