Commit 694d1afe by Manuel Araoz

killable and ownable

parent 01992ec3
/*
* Killable
* Base contract that can be killed by owner
*/
contract Killable is Ownable {
function kill() {
if (msg.sender == owner) suicide(owner);
}
}
/*
* Ownable
* Base contract with an owner
*/
contract Ownable {
address owner;
function Ownable() {
owner = msg.sender;
}
modifier onlyOwner() {
if (msg.sender == owner)
_
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment