Hey guys been stuck with this error for the past day while trying to approve a presale
::approve: should set allowance to zero first
/tx/0xe9739ffbcbd4298be38280ccd646304ce88deb2d57043339b3ee2fa3478323f5
Any ideas where should I start debugging?
May 13, 2021, 6:58 AM
Setting allowance to 0 doesn't do anything. It's only useful to do that after calling a contract if the contract has the ability to spend your tokens with transferFrom from someone else calling it
May 13, 2021, 12:34 PM
I approved manually via remix and it worked :)
May 13, 2021, 12:34 PM
Does anyone know what happens once your contract runs out of the 1.37 GB of max space? Do variables automatically get overwritten?
May 13, 2021, 12:35 PM
I was worried about my storage contract can blow up one day. Wish someone could do a limit test.
May 13, 2021, 1:45 PM
Only way around is to use a list of storage contracts you can add to as storage blows up, or even have the contract make more contracts to do it on its own
May 13, 2021, 1:48 PM
the furthest I've gone is minting tens of thousands of NFTs
Not enough to blow up a contract
Where did you see the 1.37GB storage limit? How did it get calculated?
May 13, 2021, 1:50 PM
I saw something on stack exchange about some eth limit regarding keys and storage, but I may be wrong about the 1.37 and it might just be about individual mappings
May 13, 2021, 1:55 PM
A mapping has 2^256 combinations of keys and values, each. That's about 2^257 bits.
This is a theoretical value.
Don't have a calculator. don't know how big it is...
May 13, 2021, 2:00 PM
dont all computers and phones have a calculator 😂
May 13, 2021, 2:03 PM