I'm trying to implement my own ERC20 using openzeppelin.
contract MyERC20 is ERC20 { ... }
And I want to make function from ERC20 pausable using openzeppelin Pausable contract. The question is - do I need to copy the whole function in MyERC20, for example:
function name() public view override whenPaused returns (string memory) {
return _name;
}
Or there is the way to add modifier without copy of the function body?