ERC721GSNRecipientMock.sol 784 B

12345678910111213141516171819202122232425
  1. pragma solidity ^0.6.0;
  2. import "../token/ERC721/ERC721.sol";
  3. import "../GSN/GSNRecipient.sol";
  4. import "../GSN/GSNRecipientSignature.sol";
  5. /**
  6. * @title ERC721GSNRecipientMock
  7. * A simple ERC721 mock that has GSN support enabled
  8. */
  9. contract ERC721GSNRecipientMock is ERC721, GSNRecipient, GSNRecipientSignature {
  10. constructor(address trustedSigner) public GSNRecipientSignature(trustedSigner) { }
  11. function mint(uint256 tokenId) public {
  12. _mint(_msgSender(), tokenId);
  13. }
  14. function _msgSender() internal view override(Context, GSNRecipient) returns (address payable) {
  15. return GSNRecipient._msgSender();
  16. }
  17. function _msgData() internal view override(Context, GSNRecipient) returns (bytes memory) {
  18. return GSNRecipient._msgData();
  19. }
  20. }