ERC721PausableMock.sol 588 B

1234567891011121314151617181920212223
  1. pragma solidity ^0.4.24;
  2. import "../token/ERC721/ERC721Pausable.sol";
  3. import "./PauserRoleMock.sol";
  4. /**
  5. * @title ERC721PausableMock
  6. * This mock just provides a public mint, burn and exists functions for testing purposes
  7. */
  8. contract ERC721PausableMock is ERC721Pausable, PauserRoleMock {
  9. function mint(address _to, uint256 _tokenId) public {
  10. super._mint(_to, _tokenId);
  11. }
  12. function burn(uint256 _tokenId) public {
  13. super._burn(ownerOf(_tokenId), _tokenId);
  14. }
  15. function exists(uint256 _tokenId) public view returns (bool) {
  16. return super._exists(_tokenId);
  17. }
  18. }