nftbench / contracts /src /BurnableCollection.sol
OniReimu's picture
NFTBench 0.9.0 preview (part 2)
480f454 verified
Raw History Blame Contribute Delete
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);
}
}