Skip to main content

IERC173

IERC173

OwnershipTransferred

event OwnershipTransferred(address previousOwner, address newOwner)

This emits when ownership of a contract changes.

owner

function owner() external view returns (address owner_)

Get the address of the owner

Return Values

NameTypeDescription
owner_addressThe address of the owner.

transferOwnership

function transferOwnership(address _newOwner) external

Set the address of the new owner of the contract

Set _newOwner to address(0) to renounce any ownership.

Parameters

NameTypeDescription
_newOwneraddressThe address of the new owner of the contract