* Bump required compiler version to 0.5.2. * Fix shadowed variable warning in ERC20Migrator. * Rename Counter to Counters. * Add dummy state variable to SafeERC20Helper. * Update changelog entry. * Fix CountersImpl name. * Improve changelog entry.
24 lines
503 B
Solidity
24 lines
503 B
Solidity
pragma solidity ^0.5.2;
|
|
|
|
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;
|
|
}
|
|
}
|