#mapping
#memory
It's kind of a logic bug. Try to think of what is missing in this function.
Notice the mappings at the beginning? Why do you think they were specified? Yes, their values are not updated during transfer. This means that a user can make a transaction several times for one id and empty the contract.
by RareSkills
by Jeiwan
by RareSkills
by RareSkills
by Andreas M. Antonopoulos, Gavin Wood
by Micah Dameron
Compare execution layer differences between chains
Dive deep into the storage of any contract