ERC721GSNRecipientMock.sol 546 B

123456789101112131415161718
  1. pragma solidity ^0.5.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. // solhint-disable-previous-line no-empty-blocks
  12. function mint(uint256 tokenId) public {
  13. _mint(_msgSender(), tokenId);
  14. }
  15. }