I am trying to override the _mint function of the ERC20.sol as i want. Unfortunately, i am getting an error which I will attach below.
Does anybody know how can I overcome this issue?
Here is my function which is intended to add some rules to the original _mint function of the ERC20.sol
function _mint(address _owner, uint _amount) override public pure{
if (_amount > 0 && isContained[_owner] == false) {
tokenHolders.push(_owner);
isContained[_owner] = true;
}
_mint(_owner, _amount);
}
And this is the error i am given