mirror of openzeppelin-contracts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
pragma solidity ^0.8.19;
|
|
|
|
|
|
|
|
import "../patched/token/ERC721/ERC721.sol";
|
|
|
|
|
|
|
|
contract ERC721Harness is ERC721 {
|
|
|
|
constructor(string memory name, string memory symbol) ERC721(name, symbol) {}
|
|
|
|
|
|
|
|
function mint(address account, uint256 tokenId) external {
|
|
|
|
_mint(account, tokenId);
|
|
|
|
}
|
|
|
|
|
|
|
|
function safeMint(address to, uint256 tokenId) external {
|
|
|
|
_safeMint(to, tokenId);
|
|
|
|
}
|
|
|
|
|
|
|
|
function safeMint(address to, uint256 tokenId, bytes memory data) external {
|
|
|
|
_safeMint(to, tokenId, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
function burn(uint256 tokenId) external {
|
|
|
|
_burn(tokenId);
|
|
|
|
}
|
|
|
|
|
|
|
|
function tokenExists(uint256 tokenId) external view returns (bool) {
|
|
|
|
return _exists(tokenId);
|
|
|
|
}
|
|
|
|
|
|
|
|
function unsafeOwnerOf(uint256 tokenId) external view returns (address) {
|
|
|
|
return _ownerOf(tokenId);
|
|
|
|
}
|
|
|
|
|
|
|
|
function unsafeGetApproved(uint256 tokenId) external view returns (address) {
|
|
|
|
return _getApproved(tokenId);
|
|
|
|
}
|
|
|
|
}
|