GenericERC20
This contract simulates a generic ERC20 token that is mintable and burnable.
#
Functions#
constructorDeploy this contract with given name, symbol, and decimals
the caller of this constructor will become the owner of this contract
#
Parameters:Name | Type | Description |
---|---|---|
name_ | string | name of this token |
symbol_ | string | symbol of this token |
decimals_ | uint8 | number of decimals this token will be based on |
#
mintMints given amount of tokens to recipient
only owner can call this mint function
#
Parameters:Name | Type | Description |
---|---|---|
recipient | address | address of account to receive the tokens |
amount | uint256 | amount of tokens to mint |