ERC721TokenMock.sol 771 B

12345678910111213141516171819202122232425262728293031
  1. pragma solidity ^0.4.24;
  2. import "../token/ERC721/ERC721Token.sol";
  3. /**
  4. * @title ERC721TokenMock
  5. * This mock just provides a public mint and burn functions for testing purposes,
  6. * and a public setter for metadata URI
  7. */
  8. contract ERC721TokenMock is ERC721Token {
  9. constructor(string name, string symbol) public
  10. ERC721Token(name, symbol)
  11. { }
  12. function mint(address _to, uint256 _tokenId) public {
  13. super._mint(_to, _tokenId);
  14. }
  15. function burn(uint256 _tokenId) public {
  16. super._burn(ownerOf(_tokenId), _tokenId);
  17. }
  18. function setTokenURI(uint256 _tokenId, string _uri) public {
  19. super._setTokenURI(_tokenId, _uri);
  20. }
  21. function _removeTokenFrom(address _from, uint256 _tokenId) public {
  22. super.removeTokenFrom(_from, _tokenId);
  23. }
  24. }