Ownable
contract Ownable
The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions".
Reference
Events
OwnershipTransferred
event OwnershipTransferred(address previousOwner, address newOwner)
- Parameters:
previousOwner
- addressnewOwner
- address
Modifiers
onlyOwner
modifier onlyOwner()
Throws if called by any account other than the owner.
Functions
fallback
function () public
The Ownable constructor sets the original `owner` of the contract to the sender account.
transferOwnership
function transferOwnership(address newOwner) public
Allows the current owner to transfer control of the contract to a newOwner.
- Modifiers:
- onlyOwner
- Parameters:
newOwner
- The address to transfer ownership to.