AccessControlERC20Mint
Inherits: ERC20, AccessControl
State Variables
MINTER_ROLE
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
BURNER_ROLE
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
Functions
constructor
constructor(address minter, address burner) ERC20("MyToken", "TKN");
mint
function mint(address to, uint256 amount) public onlyRole(MINTER_ROLE);
burn
function burn(address from, uint256 amount) public onlyRole(BURNER_ROLE);