I works in a last 3 days on solidity airdrop smart contract , i tried it on rinkeby but don't work. i try several time but fail and i dont know why. Here my last fail TX

A total of 86 steps found.  Contract transaction successfully completed.  Note: REVERT opcode found.

Hope someone can help me?

Here my code on test net



The tx is reverted because of this line : require(validPurchase(beneficiary));

function validPurchase(address beneficiary) internal view returns (bool) {
    bool isWhitelisted = whitelisted[beneficiary]; <----
    bool hasParticipated = participated[beneficiary];

    return isWhitelisted && !hasParticipated;

isWhitelisted is false, because your addy 0x94672796f20fe52eedcef5a590395a9aeeb0fb48 is not whitelisted.

| improve this answer | |
  • Thanks Will i want to insert in my code the possibility to partceipated at airdrops only 1 times – mmp94 Apr 27 '18 at 20:22
  • 1
    Stop stealing my thunder @EliDrion – Will Tate Apr 27 '18 at 20:35

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.