Document and figure out how to prevent double minting when using currentNEOTransfers
API to mint tokens
#2501
Labels
area/compiler
Categorize issue or PR as compiler (@neo-one/smart-contract-compiler) related
area/documentation
Categorize issue or PR as documentation related
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
priority/critical-urgent
Highest priority. Must be actively worked on as someone's top priority right now.
We currently advice in docs and examples and mixins to use the
currentNEOTransfers
API to see when NEO has been sent to a contract. But there's a fatal flaw where someone could just keep calling themintTokens
method on the contract over and over to drain the ICO. Just need to addMapStorage
to keep track in contract storage of which NEO transfers have already been counted by the method.Make sure to document this in the relevant docs and examples.
The text was updated successfully, but these errors were encountered: