Download contracts/src/CollectionV2.sol from UTSCybeR/nftbench: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/src/CollectionV2.sol
- Command line
-
hf download hf://datasets/UTSCybeR/nftbench/contracts/src/CollectionV2.sol
-
curl -L -o CollectionV2.sol https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/src/CollectionV2.sol
512 Bytes
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| import {CollectionBase} from "./CollectionBase.sol"; | |
| contract CollectionV2 is CollectionBase { | |
| function setLocked(uint256 tokenId, bool value) public override { | |
| require(value, "lock is permanent"); | |
| super.setLocked(tokenId, value); | |
| } | |
| function setUser(uint256 tokenId, address user, uint64 expires) public override { | |
| require(!locked(tokenId), "token is locked"); | |
| super.setUser(tokenId, user, expires); | |
| } | |
| } | |