Control Ownership

Contract purpose

The Ownable contract has an owner address, and provides basic authorization control functions. This simplifies the implementation of "user permissions".

Exposed methods

owner Gets the address owner of the contract

onlyOwner Throws if called by any account other than the owner.

isOwner Returns true if msg.sender is the owner of the contract.

renounceOwnership Allows the current owner to relinquish control of the contract.

transferOwnership Allows the current owner to transfer control of the contract to a newOwner.

parameter nametypedetails
_newOwneraddressthe address to transfer the ownership to
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract