GenericERC20
This contract simulates a generic ERC20 token that is mintable and burnable.

Functions:

Function 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 token
  • symbol_: symbol of this token
  • decimals_: number of decimals this token will be based on

Function 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 tokens
  • amount: amount of tokens to mint
Last modified 1mo ago