stoppable style
This commit is contained in:
@ -11,16 +11,12 @@ contract Stoppable {
|
|||||||
modifier onlyInEmergency { if (stopped) _ }
|
modifier onlyInEmergency { if (stopped) _ }
|
||||||
|
|
||||||
function Stoppable(address _curator) {
|
function Stoppable(address _curator) {
|
||||||
if (_curator == 0) {
|
if (_curator == 0) throw;
|
||||||
throw;
|
|
||||||
}
|
|
||||||
curator = _curator;
|
curator = _curator;
|
||||||
}
|
}
|
||||||
|
|
||||||
function emergencyStop() external {
|
function emergencyStop() external {
|
||||||
if (msg.sender != curator) {
|
if (msg.sender != curator) throw;
|
||||||
throw;
|
|
||||||
}
|
|
||||||
stopped = true;
|
stopped = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user