IERC173
Functions
owner
Get the address of the owner
function owner() external view returns (address owner_);
Returns
Name | Type | Description |
---|---|---|
owner_ | address | The address of the owner. |
transferOwnership
Set the address of the new owner of the contract
Set _newOwner to address(0) to renounce any ownership.
function transferOwnership(address _newOwner) external;
Parameters
Name | Type | Description |
---|---|---|
_newOwner | address | The address of the new owner of the contract |
Events
OwnershipTransferred
This emits when ownership of a contract changes.
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);