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