ERC721Harness.sol 990 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.19;
  3. import "../patched/token/ERC721/ERC721.sol";
  4. contract ERC721Harness is ERC721 {
  5. constructor(string memory name, string memory symbol) ERC721(name, symbol) {}
  6. function mint(address account, uint256 tokenId) external {
  7. _mint(account, tokenId);
  8. }
  9. function safeMint(address to, uint256 tokenId) external {
  10. _safeMint(to, tokenId);
  11. }
  12. function safeMint(address to, uint256 tokenId, bytes memory data) external {
  13. _safeMint(to, tokenId, data);
  14. }
  15. function burn(uint256 tokenId) external {
  16. _burn(tokenId);
  17. }
  18. function tokenExists(uint256 tokenId) external view returns (bool) {
  19. return _exists(tokenId);
  20. }
  21. function unsafeOwnerOf(uint256 tokenId) external view returns (address) {
  22. return _ownerOf(tokenId);
  23. }
  24. function unsafeGetApproved(uint256 tokenId) external view returns (address) {
  25. return _getApproved(tokenId);
  26. }
  27. }