@perfect-abstractions/compose/access/Owner/Transfer/OwnerTransferMod.solHelper functions for ownership transfer and storage access.
transferOwnership guards by requiring msg.sender is the current owner.OwnershipTransferred on successful transfers.Use helper functions from Compose using your own custom facets. See Facets & Modules for more information.
STORAGE_POSITIONbytes32keccak256("erc173.owner"))Returns a pointer to the OwnerStorage struct.
Returns:
sOwnerStorage storageTransfer the diamond ownership from the current owner to the next one. Caller must be the current owner.
_newOwner may be address(0) to clear ownership (same storage effect as renounceOwnership() in OwnerRenounceMod).
Parameters:
_newOwneraddressaddress(0) to clear ownership.transferOwnership only from trusted external wrappers; confirm _newOwner before sending a transaction.STORAGE_POSITION and OwnerStorage layout as other owner modules; do not introduce a second owner slot.OwnerRenounceMod or pass address(0) here. Both target the same storage field.OwnerStorage lives at keccak256("erc173.owner") inside the diamond. The same slot as OwnerDataMod, OwnerTransferFacet, and related owner code. Transferring here updates what owner() reads on OwnerDataFacet.