* 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.
28 lines
695 B
Solidity
28 lines
695 B
Solidity
pragma solidity ^0.5.2;
|
|
|
|
import "../token/ERC721/ERC721Pausable.sol";
|
|
import "./PauserRoleMock.sol";
|
|
|
|
/**
|
|
* @title ERC721PausableMock
|
|
* This mock just provides a public mint, burn and exists functions for testing purposes
|
|
*/
|
|
contract ERC721PausableMock is ERC721Pausable, PauserRoleMock {
|
|
constructor() public {
|
|
ERC721.initialize();
|
|
ERC721Pausable.initialize(_msgSender());
|
|
}
|
|
|
|
function mint(address to, uint256 tokenId) public {
|
|
super._mint(to, tokenId);
|
|
}
|
|
|
|
function burn(uint256 tokenId) public {
|
|
super._burn(tokenId);
|
|
}
|
|
|
|
function exists(uint256 tokenId) public view returns (bool) {
|
|
return super._exists(tokenId);
|
|
}
|
|
}
|