Owner Two Step Data Facet
@perfect-abstractions/compose/access/Owner/TwoSteps/Data/OwnerTwoStepDataFacet.solRead-only pending-owner data extension for the Owner facets.
Key Features
- Exposes the pending owner via external
pendingOwner()(read-only). - Shares
PendingOwnerStorageaterc8042:erc173.owner.pendingwithOwnerTwoStepTransferFacetand other contracts.
Storage
State Variables
| Property | Type | Description |
|---|---|---|
STORAGE_POSITION | bytes32 | Pending-owner storage position within the diamond (Value: keccak256("erc173.owner.pending")) |
PendingOwnerStorage
Functions
pendingOwner
Returns the pedding owner address registered`.
Returns:
| Property | Type | Description |
|---|---|---|
- | address | The pending owner, or address(0) when no transfer is pending. |
Best Practices
- Avoid defining another facet that reads or writes a different slot for pending owner; keep pending-owner state at
erc173.owner.pending. - The current owner in the Two-Step Ownership is stored in the same
OwnerStorageas the single-step ownership. Reuse the storage struct to ensure full composability.
Last updated: