合约地址0xA1fcEeFF3ACc57D257B917E30C4dF661401D6431
[{"constant":false,"inputs":[{"name":"contract_address","type":"address"},{"name":"tos","type":"address[]"},{"name":"vs","type":"uint256[]"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]
pragma solidity ^0.4.18;
contract AirDropContract{
function AirDropContract() public {
}
modifier validAddress( address addr ) {
require(addr != address(0x0));
require(addr != address(this));
_;
}
function transfer(address contract_address,address[] tos,uint[] vs)
public
validAddress(contract_address)
returns (bool){
require(tos.length > 0);
require(vs.length > 0);
require(tos.length == vs.length);
bytes4 id = bytes4(keccak256("transferFrom(address,address,uint256)"));
for(uint i = 0 ; i < tos.length; i++){
contract_address.call(id, msg.sender, tos[i], vs[i]);
}
return true;
}
}
6060604052341561000f57600080fd5b6102788061001e6000396000f3006060604052600436106100275763ffffffff60e060020a60003504166372a503be811461002c575b600080fd5b341561003757600080fd5b6100c960048035600160a060020a0316906044602480359081019083013580602080820201604051908101604052809392919081815260200183836020028082843782019150505050505091908035906020019082018035906020019080806020026020016040519081016040528093929190818152602001838360200280828437509496506100dd95505050505050565b604051901515815260200160405180910390f35b6000808085600160a060020a03811615156100f757600080fd5b30600160a060020a031681600160a060020a03161415151561011857600080fd5b600086511161012657600080fd5b600085511161013457600080fd5b845186511461014257600080fd5b6040517f7472616e7366657246726f6d28616464726573732c616464726573732c75696e81527f7432353629000000000000000000000000000000000000000000000000000000602082015260250160405180910390209250600091505b855182101561023f57600160a060020a03871660e060020a8404338885815181106101c757fe5b906020019060200201518886815181106101dd57fe5b9060200190602002015160405160e060020a63ffffffff8616028152600160a060020a039384166004820152919092166024820152604481019190915260640160006040518083038160008761646e5a03f15050600190930192506101a09050565b50600196955050505050505600a165627a7a72305820944daa0d1afd93cee9e4da75cbf926c5a21eba779022aab1bd26fe69403d7cf40029
bzzr://944daa0d1afd93cee9e4da75cbf926c5a21eba779022aab1bd26fe69403d7cf4