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