Skip to main content

Owner Renounce Facet

@perfect-abstractions/compose/access/Owner/Renounce/OwnerRenounceFacet.sol

Renounce the ownership of your diamonds

Storage

State Variables

PropertyTypeDescription
STORAGE_POSITIONbytes32Owner storage position within the diamond (Value: keccak256("erc173.owner"))

OwnerStorage

Definition
/** storage-location erc8042:erc173.owner */
struct OwnerStorage {
address owner;
}

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.

function renounceOwnership() external;

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:

Newsletter

Get notified about releases, feature announcements, and technical deep-dives on building smart contracts with Compose.

No spam. Unsubscribe anytime.