Closed guotie closed 2 years ago
solidity version is ^0.8.0
If I want call the
MyToken
methodmint
, then I need define an interface like this:
You don't need to define an interface. You can just use MyToken.
If you need further assistance post on the OpenZeppelin Forum.
🧐 Motivation
I think interface IERC20Mintable and IERC20Burnable is needed.
📝 Details
for example, if I inherit the
ERC20PresetMinterPauserUpgradeable
as following:If I want call the
MyToken
methodmint
, then I need define an interface like this:then, compile error: