I have this smart contract to send tokens to multiple addresses:
pragma solidity ^0.4.18;
contract ERC20 {
function transfer(address _recipient, uint256 _value) public returns (bool success);
}
contract Airdrop {
function drop(ERC20 token, address[] recipients, uint256[] values) public {
for (uint256 i = 0; i < recipients.length; i++) {
token.transfer(recipients[i], values[i]);
}
}
}
When I access the function "Drop" via MyEtherWallet, I don't know how to insert the addresses in the field "recipients".
I've tried this but none of them work:
0x0000000000000000000000000000000000000001, 0x0000000000000000000000000000000000000002, 0x0000000000000000000000000000000000000003
0x0000000000000000000000000000000000000001 0x0000000000000000000000000000000000000002 0x0000000000000000000000000000000000000003
['0x0000000000000000000000000000000000000001', '0x0000000000000000000000000000000000000002', '0x0000000000000000000000000000000000000003']
["0x0000000000000000000000000000000000000001", "0x0000000000000000000000000000000000000002", "0x0000000000000000000000000000000000000003"]
I can only execute the first one, but it says "Bad Instruction" or "Fail". In the other options I press the button "Write" but nothing happens
["0x1234..", "0x1234..", "0x1234.."]
,values = [667, 668, 669]