when i make contract for example
MyContract is ERC20("yada", "yadayada") {
and i want to overwrite the totalSupply() function
how do i do that? Basically want to do
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply + SOMETHING;
}
PROBLEM IS: error appears:
_totalSupply is "Undeclared identifier"
(in ERC20 _totalSupply is private. How can i access it? How do i solve this problem? I know i could add another method, but i want to override totalSupply()