Remove the Renounce Ownership functionality
Now, letās remove the function to remove an owner. We simply stop this with a revert. Add the following function to the SharedWallet:
contract SharedWallet is Allowance {
//...
function renounceOwnership() public override onlyOwner {
revert("can't renounceOwnership here"); //not possible with this smart contract
}
//...
}
Last updated on