Skip to Content
Courses

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:

View the Full Course Now 

contract SharedWallet is Allowance { //... function renounceOwnership() public override onlyOwner { revert("can't renounceOwnership here"); //not possible with this smart contract } //... }
Last updated on