killable and ownable
This commit is contained in:
9
contracts/Killable.sol
Normal file
9
contracts/Killable.sol
Normal file
@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user