* removed and tested unecessary gas cost
* linted
* Revert package-lock.json update.
This reverts commit 054598ce7f.
* Added clarifying comments.
32 lines
771 B
Solidity
32 lines
771 B
Solidity
pragma solidity ^0.4.24;
|
|
|
|
import "../token/ERC721/ERC721Token.sol";
|
|
|
|
|
|
/**
|
|
* @title ERC721TokenMock
|
|
* This mock just provides a public mint and burn functions for testing purposes,
|
|
* and a public setter for metadata URI
|
|
*/
|
|
contract ERC721TokenMock is ERC721Token {
|
|
constructor(string name, string symbol) public
|
|
ERC721Token(name, symbol)
|
|
{ }
|
|
|
|
function mint(address _to, uint256 _tokenId) public {
|
|
super._mint(_to, _tokenId);
|
|
}
|
|
|
|
function burn(uint256 _tokenId) public {
|
|
super._burn(ownerOf(_tokenId), _tokenId);
|
|
}
|
|
|
|
function setTokenURI(uint256 _tokenId, string _uri) public {
|
|
super._setTokenURI(_tokenId, _uri);
|
|
}
|
|
|
|
function _removeTokenFrom(address _from, uint256 _tokenId) public {
|
|
super.removeTokenFrom(_from, _tokenId);
|
|
}
|
|
}
|