@perfect-abstractions/compose/access/Owner/TwoSteps/Transfer/OwnerTwoStepTransferFacet.solTwo-step ownership transfer for your diamond
OWNER_STORAGE_POSITIONbytes32keccak256("erc173.owner"))PENDING_OWNER_STORAGE_POSITIONbytes32keccak256("erc173.owner.pending"))Callable only when msg.sender is the current owner. Sets pendingOwner to _newOwner and emits OwnershipTransferStarted(owner, _newOwner). The on-chain owner does not change until acceptOwnership is call.
Parameters:
_newOwneraddressCallable only when msg.sender is the pending owner. Assigns owner to the pending address, sets pendingOwner to address(0), and emits OwnershipTransferred(previousOwner, newOwner).
OwnerStorage.owner during deployment before relying on owner behavior elsewhere.transferOwnership, ensure the nominated _newOwner can and will call acceptOwnership; until then, the previous owner remains owner.