Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AccessControlERC20MintBase

Inherits: ERC20, AccessControl

State Variables

MINTER_ROLE

bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

Functions

constructor

constructor(address minter) ERC20("MyToken", "TKN");

mint

function mint(address to, uint256 amount) public;

Errors

CallerNotMinter

error CallerNotMinter(address caller);