Add release method to Stoppable. Create StoppableMock
This commit is contained in:
17
contracts/test-helpers/StoppableMock.sol
Normal file
17
contracts/test-helpers/StoppableMock.sol
Normal file
@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user