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.
22 lines
425 B
22 lines
425 B
pragma solidity ^0.4.4;
|
|
import '../Stoppable.sol';
|
|
|
|
// mock class using Stoppable
|
|
contract StoppableMock is Stoppable {
|
|
bool public drasticMeasureTaken;
|
|
uint public count;
|
|
|
|
function StoppableMock() {
|
|
drasticMeasureTaken = false;
|
|
count = 0;
|
|
}
|
|
|
|
function normalProcess() external stopInEmergency {
|
|
count++;
|
|
}
|
|
|
|
function drasticMeasure() external onlyInEmergency {
|
|
drasticMeasureTaken = true;
|
|
}
|
|
|
|
}
|
|
|