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.
24 lines
472 B
24 lines
472 B
pragma solidity ^0.4.24;
|
|
|
|
import "../lifecycle/Pausable.sol";
|
|
import "./PauserRoleMock.sol";
|
|
|
|
// mock class using Pausable
|
|
contract PausableMock is Pausable, PauserRoleMock {
|
|
bool public drasticMeasureTaken;
|
|
uint256 public count;
|
|
|
|
constructor() public {
|
|
drasticMeasureTaken = false;
|
|
count = 0;
|
|
}
|
|
|
|
function normalProcess() external whenNotPaused {
|
|
count++;
|
|
}
|
|
|
|
function drasticMeasure() external whenPaused {
|
|
drasticMeasureTaken = true;
|
|
}
|
|
|
|
}
|
|
|