GSNRecipientERC20FeeMock.sol 586 B

1234567891011121314151617181920
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity >=0.6.0 <0.8.0;
  3. import "../GSN/GSNRecipient.sol";
  4. import "../GSN/GSNRecipientERC20Fee.sol";
  5. contract GSNRecipientERC20FeeMock is GSNRecipient, GSNRecipientERC20Fee {
  6. constructor(string memory name, string memory symbol) public GSNRecipientERC20Fee(name, symbol) { }
  7. function mint(address account, uint256 amount) public {
  8. _mint(account, amount);
  9. }
  10. event MockFunctionCalled(uint256 senderBalance);
  11. function mockFunction() public {
  12. emit MockFunctionCalled(token().balanceOf(_msgSender()));
  13. }
  14. }