killable and ownable

This commit is contained in:
Manuel Araoz
2016-08-09 14:06:13 -03:00
parent 01992ec32e
commit 694d1afe1e
2 changed files with 25 additions and 0 deletions

9
contracts/Killable.sol Normal file
View 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);
}
}