OwnedERC20
Inherits: ERC20Burnable, Ownable
ERC20 token with owner-only mint, and a burn function
Functions
constructor
constructor(
string memory name_,
string memory symbol_,
address initialOwner_
) ERC20(name_, symbol_) Ownable(initialOwner_);
Parameters
| Name | Type | Description |
|---|---|---|
| name_ | string | |
| symbol_ | string | |
| initialOwner_ | address |
mint
Mint tokens to the specified address
Only the owner can mint tokens
function mint(address to, uint256 amount) public virtual onlyOwner;
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | |
| amount | uint256 |