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