i have created this contract


but the problem is when i try to contribute to crowdsale it showing an error, (Error encountered during contract execution [Reverted] )

btw i have put my 2 addresses as whitelist addresses, i can contribute to crowdsale only with these two addresses when i try with other addresses always it failed.


im thinking the issue is in here (function investInternal):

 if(!earlyParticipantWhitelist[receiver].status) {

Receiver (the caller of the buy method), is not on the earlyParticipantWhitelist.

please help me if someone knows the what is the error, how to change this and how to change the contact.

  • You are using a very old version of the solidity compiler, your contract do not have a fallback function to accept payment, and none of the methods is payable. – Ismael Jul 23 '18 at 7:27

Your Answer

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

Browse other questions tagged or ask your own question.