Ownable.sol 292 B

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