Owner Two Step Renounce Facet
@perfect-abstractions/compose/access/Owner/TwoSteps/Renounce/OwnerTwoStepRenounceFacet.solRenounce the two step ownership of your diamonds
Key Features
renounceOwnership()clears owner and pending owner in one call.- Owner-only function; otherwise reverts
OwnerUnauthorizedAccount.
Storage
State Variables
| Property | Type | Description |
|---|---|---|
OWNER_STORAGE_POSITION | bytes32 | Owner storage position within the diamond (Value: keccak256("erc173.owner")) |
PENDING_OWNER_STORAGE_POSITION | bytes32 | Pending owner storage position within the diamond (Value: keccak256("erc173.owner.pending")) |
OwnerStorage
PendingOwnerStorage
Functions
renounceOwnership
Renounce the diamond ownership while clearing any pending owner. Requires msg.sender to equal the current owner; otherwise reverts OwnerUnauthorizedAccount.
Events
Errors
Best Practices
- Only the current owner can renounce; there is no pending step for renounce itself, but clearing
pendingOwneravoids leaving a nominated successor after you renounce
Security Considerations
Renouncing is an immediate and irreversible on-chain action: you will lose access to all owner gated functionality inside your diamond.
Last updated: