Greetings!
I am trying to implement a new function to the safemoon protocol i found on the web. You can find it here: https://github.com/safemoonprotocol/Safemoon.sol .
I am using remix to edit code.
So the function i am trying to add looks like this:
function mint(uint256 amount) public onlyOwner returns (bool) {
_mint(_msgSender(), amount);
return true;
}
When i try to compile it, i get an error looking sort of like this: (excluded line of error and name of project as it has no value)
declarationerror: Undeclared identifier. Did you mean “mint”? → _mint(_msgSender(), amount);
So i am struggeling here as i dont know whats wrong…
I tried to remove the underline before mint and deploy it. I only got a warning, but the result when deploying wasn’t as expected.
I may think this is due to the contract is IERC20 and not ERC20, but not sure about it?
Any help on this would be very appreciated!
Thank you in advance