@perfect-abstractions/compose/access/Owner/TwoSteps/Renounce/OwnerTwoStepRenounceMod.solHelper functions for renouncing ownership and clearing pending-owner state.
renounceOwnership guards by requiring msg.sender is the current owner.OwnershipTransferred with newOwner == address(0).Use modules through your facet’s to extend Compose base logic. See Facets & Modules for more information.
OWNER_STORAGE_POSITIONbytes32keccak256("erc173.owner"))PENDING_OWNER_STORAGE_POSITIONbytes32keccak256("erc173.owner.pending"))Returns a pointer to the OwnerStorage struct.
Returns:
sOwnerStorageReturns a pointer to the PendingOwnerStorage struct.
Returns:
sPendingOwnerStorageRenounce ownership of the contract. Sets the owner to address(0) and clears any pending owner, disabling all functions restricted to the owner.
This module interacts with diamond storage at the slots defined by OWNER_STORAGE_POSITION and PENDING_OWNER_STORAGE_POSITION.
The renounceOwnership function directly modifies the owner & pendingOwner fields within the storage structs, setting it to address(0). These changes are immediately visible to all facets that access the same storage slots.