GenericERC20
This contract simulates a generic ERC20 token that is mintable and burnable.
Functions:
Function constructor(string name_, string symbol_, uint8 decimals_)
constructor(string name_, string symbol_, uint8 decimals_)
Deploy this contract with given name, symbol, and decimals
the caller of this constructor will become the owner of this contract
Parameters:
name_
: name of this tokensymbol_
: symbol of this tokendecimals_
: number of decimals this token will be based on
Function mint(address recipient, uint256 amount)
mint(address recipient, uint256 amount)
Mints given amount of tokens to recipient
only owner can call this mint function
Parameters:
recipient
: address of account to receive the tokensamount
: amount of tokens to mint
Last updated