Owner Renounce Facet
@perfect-abstractions/compose/access/Owner/Renounce/OwnerRenounceFacet.solRenounce the ownership of your diamonds
Storage
State Variables
| Property | Type | Description |
|---|---|---|
STORAGE_POSITION | bytes32 | Owner storage position within the diamond (Value: keccak256("erc173.owner")) |
OwnerStorage
Functions
renounceOwnership
Sets the Owner to address(0) if call by the current owner; otherwise reverts OwnerUnauthorizedAccount.
After this call succeeds, owner-only operations that rely on the owner should no longer work. This action is irreversible.
Events
Errors
Security Considerations
Renouncement is irreversible in storage: once owner is zeroed, there is no way to rollback this action. This is useful when you are done modifing your diamond and want to make it immutable.
If you need extra security, you can use the TwoSteps Ownership module, which permit the owner to set a pending owner address before renouncing.
Last updated: