I try to override ERC20 methods ... The doc says it should be possible but I get the error:
CompileError: @openzeppelin/contracts/token/ERC20/ERC20.sol:96:5: TypeError: Trying to override non-virtual function. Did you forget to add "virtual"?
function totalSupply() public view override returns (uint256) {
^ (Relevant source part starts here and spans across multiple lines).
The method:
function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
OpenZeppelin version: 3.3.0
Any idea of what could it be? (I'm very new to Solidity but I think that should work?)
EDIT Taked a bad excample... but I get this error for every function thats in ERC20 ...