You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
347 B
18 lines
347 B
8 years ago
|
pragma solidity ^0.4.0;
|
||
|
import '../Stoppable.sol';
|
||
|
|
||
|
// mock class using Stoppable
|
||
|
contract StoppableMock is Stoppable {
|
||
|
bool public drasticMeasureTaken;
|
||
|
uint public count = 0;
|
||
|
|
||
|
function normalProcess() external stopInEmergency {
|
||
|
count++;
|
||
|
}
|
||
|
|
||
|
function drasticMeasure() external onlyInEmergency {
|
||
|
drasticMeasureTaken = true;
|
||
|
}
|
||
|
|
||
|
}
|