Ownable.sol 346 B

1234567891011121314151617181920212223
  1. pragma solidity ^0.4.4;
  2. /*
  3. * Ownable
  4. * Base contract with an owner
  5. */
  6. contract Ownable {
  7. address public owner;
  8. function Ownable() {
  9. owner = msg.sender;
  10. }
  11. modifier onlyOwner() {
  12. if (msg.sender == owner)
  13. _;
  14. }
  15. function transfer(address newOwner) onlyOwner {
  16. if (newOwner != address(0)) owner = newOwner;
  17. }
  18. }