The ERC20Registry contract provides modifiers for registering ERC20 tokens and
their associated stores. Registration allows the token to be recognized and made
interoperable with other parts of the MiniEVM rollup functionality.
Registers an ERC20 token with the ERC20 registry. This is done to allow the
token to be recognized and interoperable with other parts of the MiniEVM rollup.
Registers an ERC20 store for a given account with the ERC20 registry if it is
not already registered. This is done to keep track of which accounts are
associated with which ERC20 tokens.
modifier register_erc20_store(address account) { if (!ERC20_REGISTRY_CONTRACT.is_erc20_store_registered(account)) { ERC20_REGISTRY_CONTRACT.register_erc20_store(account); } _;}