ERC721PausableMock.sol 654 B

1234567891011121314151617181920212223242526272829
  1. pragma solidity ^0.6.0;
  2. import "../token/ERC721/ERC721Pausable.sol";
  3. /**
  4. * @title ERC721PausableMock
  5. * This mock just provides a public mint, burn and exists functions for testing purposes
  6. */
  7. contract ERC721PausableMock is ERC721Pausable {
  8. function mint(address to, uint256 tokenId) public {
  9. super._mint(to, tokenId);
  10. }
  11. function burn(uint256 tokenId) public {
  12. super._burn(tokenId);
  13. }
  14. function exists(uint256 tokenId) public view returns (bool) {
  15. return super._exists(tokenId);
  16. }
  17. function pause() external {
  18. _pause();
  19. }
  20. function unpause() external {
  21. _unpause();
  22. }
  23. }