* 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.
23 lines
570 B
Solidity
23 lines
570 B
Solidity
pragma solidity ^0.5.2;
|
|
|
|
import "../access/roles/CapperRole.sol";
|
|
|
|
contract CapperRoleMock is CapperRole {
|
|
constructor() public {
|
|
CapperRole.initialize(_msgSender());
|
|
}
|
|
|
|
function removeCapper(address account) public {
|
|
_removeCapper(account);
|
|
}
|
|
|
|
function onlyCapperMock() public view onlyCapper {
|
|
// solhint-disable-previous-line no-empty-blocks
|
|
}
|
|
|
|
// Causes a compilation error if super._removeCapper is not internal
|
|
function _removeCapper(address account) internal {
|
|
super._removeCapper(account);
|
|
}
|
|
}
|