|
@@ -7,8 +7,8 @@ import "../token/ERC721/ERC721Burnable.sol";
|
|
|
|
|
|
/**
|
|
|
* @title ERC721FullMock
|
|
|
- * This mock just provides a public mint and burn functions for testing purposes,
|
|
|
- * and a public setter for metadata URI
|
|
|
+ * This mock just provides public functions for setting metadata URI, getting all tokens of an owner,
|
|
|
+ * checking token existence, removal of a token from an address
|
|
|
*/
|
|
|
contract ERC721FullMock is ERC721Full, ERC721Mintable, ERC721MetadataMintable, ERC721Burnable {
|
|
|
constructor (string name, string symbol) public ERC721Mintable() ERC721Full(name, symbol) {}
|
|
@@ -17,6 +17,10 @@ contract ERC721FullMock is ERC721Full, ERC721Mintable, ERC721MetadataMintable, E
|
|
|
return _exists(tokenId);
|
|
|
}
|
|
|
|
|
|
+ function tokensOfOwner(address owner) public view returns (uint256[] memory) {
|
|
|
+ return _tokensOfOwner(owner);
|
|
|
+ }
|
|
|
+
|
|
|
function setTokenURI(uint256 tokenId, string uri) public {
|
|
|
_setTokenURI(tokenId, uri);
|
|
|
}
|