mirror of openzeppelin-contracts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
pragma solidity ^0.5.0;
|
|
|
|
|
|
|
|
import "../token/ERC721/ERC721.sol";
|
|
|
|
import "../GSN/GSNRecipient.sol";
|
|
|
|
import "../GSN/GSNRecipientSignature.sol";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @title ERC721GSNRecipientMock
|
|
|
|
* A simple ERC721 mock that has GSN support enabled
|
|
|
|
*/
|
|
|
|
contract ERC721GSNRecipientMock is ERC721, GSNRecipient, GSNRecipientSignature {
|
|
|
|
constructor(address trustedSigner) public GSNRecipientSignature(trustedSigner) { }
|
|
|
|
// solhint-disable-previous-line no-empty-blocks
|
|
|
|
|
|
|
|
function mint(uint256 tokenId) public {
|
|
|
|
_mint(_msgSender(), tokenId);
|
|
|
|
}
|
|
|
|
}
|