* switch to using Context internally
* add context import
* Add smoke test to make sure enabling GSN support works
* Update test/GSN/ERC721GSNRecipientMock.test.js
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* Upgrade truffle
* add missing awaits
* Revert "Upgrade truffle"
This reverts commit f9b0ba9019.
26 lines
547 B
Solidity
26 lines
547 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 {
|
|
Pausable.initialize(_msgSender());
|
|
|
|
drasticMeasureTaken = false;
|
|
count = 0;
|
|
}
|
|
|
|
function normalProcess() external whenNotPaused {
|
|
count++;
|
|
}
|
|
|
|
function drasticMeasure() external whenPaused {
|
|
drasticMeasureTaken = true;
|
|
}
|
|
}
|