Download contracts/src/BasicCollection.sol from UTSCybeR/nftbench: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/src/BasicCollection.sol
- Command line
-
hf download hf://datasets/UTSCybeR/nftbench/contracts/src/BasicCollection.sol
-
curl -L -o BasicCollection.sol https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/src/BasicCollection.sol
446 Bytes
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
| contract BasicCollection is ERC721 { | |
| address public immutable issuer; | |
| constructor() ERC721("Basic Collection", "BASIC") { | |
| issuer = msg.sender; | |
| } | |
| function mint(address to, uint256 tokenId) external { | |
| require(msg.sender == issuer, "only issuer"); | |
| _mint(to, tokenId); | |
| } | |
| } | |