Files
openzeppelin-contracts/docs/source/ownable.rst
Demian Elias Brener ec07dce76f writing docs
2016-12-19 11:56:34 -03:00

16 lines
473 B
ReStructuredText

Ownable
=============================================
Base contract with an owner.
Ownable( )
""""""""""""""""""""""""""""""""""""""
Sets the address of the creator of the contract as the owner.
modifier onlyOwner( )
""""""""""""""""""""""""""""""""""""""
Prevents function from running if it is called by anyone other than the owner.
transfer(address newOwner) onlyOwner
""""""""""""""""""""""""""""""""""""""
Transfers ownership of the contract to the passed address.