Mintable Token Smart Contract

Address

Init function

function initToken(
      string memory _name,
      string memory _symbol,
      address _owner,
      uint256 _initialSupply
)
      public override

Parameter

Description

_name

Token name.

_symbol

Token symbol.

_owner

Contract owner.

_initialSupply

Amount of tokens minted on creation.

Initializes ERC20 token with name and symbol, gives admin privileges and mints token supply to callers address.

Minting function

function mint(address to, uint256 amount) public virtual

Mints a specified amount of tokens to specified address.

Last updated