ownable.rst 473 B

12345678910111213141516
  1. Ownable
  2. =============================================
  3. Base contract with an owner.
  4. Ownable( )
  5. """"""""""""""""""""""""""""""""""""""
  6. Sets the address of the creator of the contract as the owner.
  7. modifier onlyOwner( )
  8. """"""""""""""""""""""""""""""""""""""
  9. Prevents function from running if it is called by anyone other than the owner.
  10. transfer(address newOwner) onlyOwner
  11. """"""""""""""""""""""""""""""""""""""
  12. Transfers ownership of the contract to the passed address.