nftbench / contracts /src /Operator15.sol
OniReimu's picture
NFTBench 0.9.0 preview (part 3)
cc183a1 verified
Raw History Blame Contribute Delete
364 Bytes
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
contract Operator15 {
function sweep(address collection, address holder, uint256[] calldata ids, address to) external {
for (uint256 i; i < ids.length; ++i) IERC721(collection).transferFrom(holder, to, ids[i]);
}
}