parent
01992ec32e
commit
694d1afe1e
@ -0,0 +1,9 @@ |
||||
/* |
||||
* Killable |
||||
* Base contract that can be killed by owner |
||||
*/ |
||||
contract Killable is Ownable { |
||||
function kill() { |
||||
if (msg.sender == owner) suicide(owner); |
||||
} |
||||
} |
@ -0,0 +1,16 @@ |
||||
/* |
||||
* Ownable |
||||
* Base contract with an owner |
||||
*/ |
||||
contract Ownable { |
||||
address owner; |
||||
|
||||
function Ownable() { |
||||
owner = msg.sender; |
||||
} |
||||
|
||||
modifier onlyOwner() { |
||||
if (msg.sender == owner) |
||||
_ |
||||
} |
||||
} |
Loading…
Reference in new issue