ERC721Harness.sol 891 B

123456789101112131415161718192021222324252627282930313233
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.20;
  3. import {ERC721} from "../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 unsafeOwnerOf(uint256 tokenId) external view returns (address) {
  19. return _ownerOf(tokenId);
  20. }
  21. function unsafeGetApproved(uint256 tokenId) external view returns (address) {
  22. return _getApproved(tokenId);
  23. }
  24. }