done , wrong question. better to use this

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]);
  • I notice the decimals of your Straddle Token are 1 and not the usual 18, and that in this original code (not that which you have posted), within the function sendTokens(), the line that says "uint256 toSend = values[i] *10^18;" used to have that *10^18 there, so possibly yours is off by a factor of 10? It's a long shot, but might possibly be what caused your error. I'm trying to use this code right now to airdrop a token, and not really understanding what I'm doing. Could anyone explain exactly in detail how to call/use the smart contract after it's deployed, to actually send the ["A","B","C
    – Allen Rice
    Jan 20 '18 at 22:09
  • you're supposed to answer not to ask more questions
    – Davide C
    Feb 2 '18 at 20:18
  • If you have a question it is better to create a new one, question in comments will not receive much attention.
    – Ismael
    Feb 9 '18 at 15:32
  • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review Feb 9 '18 at 18:11

Ensure the contract address as 0x93136f0d37f8f6830f61847edbab794b81d99dbc and token address as 0x14fd8dd229ba04881bfd443c6216d84fe19e1edf (derived from the links that you have given) and check again.

  • Please try it with the Token address, I am losing hope now.
    – user19060
    Nov 29 '17 at 12:15
  • Am not the owner, I will not be able to do it. Deploy the contract again with proper token address. The one you have used in the contract 0xe34c1960fbf05d4e08c19248491dfbcdbeab6e44 doesn't seems to be of a token address. Check this out.
    – Rajesh
    Nov 29 '17 at 12:16
  • Try now, i have smart contract on ropsten and the airdrop contract also on ropsten network deployed, but things are not working :(
    – user19060
    Nov 29 '17 at 12:20
  • Few questions, you have created the token from this same contract? and used the token address properly? give me gist link to your code so that I can review it again for you. address _tokenAddr =0xe34c1960fbf05d4e08c19248491dfbcdbeab6e44; this line to have token's address here
    – Rajesh
    Nov 29 '17 at 12:22
  • 1
    hey, were you able to complete it?
    – Rajesh
    Nov 30 '17 at 4:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy