* 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.
27 lines
689 B
Solidity
27 lines
689 B
Solidity
pragma solidity ^0.5.0;
|
|
|
|
import "../GSN/Context.sol";
|
|
import "../token/ERC777/ERC777.sol";
|
|
|
|
contract ERC777Mock is Context, ERC777 {
|
|
constructor(
|
|
address initialHolder,
|
|
uint256 initialBalance,
|
|
string memory name,
|
|
string memory symbol,
|
|
address[] memory defaultOperators
|
|
) public ERC777(name, symbol, defaultOperators) {
|
|
_mint(_msgSender(), initialHolder, initialBalance, "", "");
|
|
}
|
|
|
|
function mintInternal (
|
|
address operator,
|
|
address to,
|
|
uint256 amount,
|
|
bytes memory userData,
|
|
bytes memory operatorData
|
|
) public {
|
|
_mint(operator, to, amount, userData, operatorData);
|
|
}
|
|
}
|