Remix: ERC20: Can't call _mint - Undeclared identifier. Did you mean "mint"?

Hi @MToken,

You seem to have figured it out already, your mistake is in

It should be:

contract Testy is ERC20, Ownable {

Regarding your second question, our view functions are not virtual. (For more context see How we plan to adopt Solidity 0.6 virtual functions).

However, I don't think you need to override for what you're trying to do. You should use the constructor of ERC20 to define name and symbol:

contract Testy is ERC20, Ownable {
    constructor() ERC20("Name", "SYM") {}
}

Read more about the constructor in the docs.

2 Likes