Ownable
Inherits: IOwnable
This abstract contract adds basic ownership control functionalities
State Variables
owner
Address of the contract owner
address public owner;
Functions
constructor
constructor(address _owner);
Parameters
Name | Type | Description |
---|---|---|
_owner | address | The address of the owner of the contract |
setOwner
Sets a new contract owner
function setOwner(address _owner) external onlyOwner;
Parameters
Name | Type | Description |
---|---|---|
_owner | address |
_setOwner
Sets a new contract owner
function _setOwner(address _newOwner) internal;
onlyOwner
Checks whether msg.sender can call an owned function
modifier onlyOwner();