Download contracts/src/BurnableCollection.sol from UTSCybeR/nftbench: direct link, hf CLI and curl.
- Browser
- Download file 307 Bytes
-
https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/src/BurnableCollection.sol
- Command line
-
hf download hf://datasets/UTSCybeR/nftbench/contracts/src/BurnableCollection.sol
-
curl -L -o BurnableCollection.sol https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/src/BurnableCollection.sol
307 Bytes
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| import {CollectionBase} from "./CollectionBase.sol"; | |
| contract BurnableCollection is CollectionBase { | |
| function burn(uint256 tokenId) external { | |
| require(msg.sender == _requireOwned(tokenId), "only owner"); | |
| _burn(tokenId); | |
| } | |
| } | |