File size: 853 Bytes
f998fcd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
// This contract is part of Zellic’s smart contract dataset, which is a collection of publicly available contract code gathered as of March 2023.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
interface IERC721 {
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
}
contract BatchAirdroper {
constructor() {}
function transferBatch(
address[] calldata receivers,
uint256[] calldata ids,
address contractAddress
) external {
IERC721 erc721Contract = IERC721(contractAddress);
for (uint256 index = 0; index < receivers.length; index++) {
erc721Contract.transferFrom(
msg.sender,
receivers[index],
ids[index]
);
}
}
} |