ERC721PausableMock.sol 772 B

123456789101112131415161718192021222324252627282930313233
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../token/ERC721/ERC721Pausable.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 {
  9. constructor (string memory name, string memory symbol) ERC721(name, symbol) { }
  10. function mint(address to, uint256 tokenId) public {
  11. super._mint(to, tokenId);
  12. }
  13. function burn(uint256 tokenId) public {
  14. super._burn(tokenId);
  15. }
  16. function exists(uint256 tokenId) public view returns (bool) {
  17. return super._exists(tokenId);
  18. }
  19. function pause() external {
  20. _pause();
  21. }
  22. function unpause() external {
  23. _unpause();
  24. }
  25. }