Skip to content

Lesson 4 - Fund Me not working - Transaction reverted #128

Answered by alwayscommit
Leonardll asked this question in Q&A
Discussion options

You must be logged in to vote

You can try out a few things here

  1. Comment out the require check which will narrow down the error to the conversionRate() function, if the transaction is successful with any amount.
  2. If the transaction is successful without the require check, then you look into your conversion logic, and verify whether you're sending the correct amount of wei, over 50 dollars based on the current market price.
  3. Check if you're deploying the contract on the correct network, on which the Chainlink priceFeed is active.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@PatrickAlphaC
Comment options

@Leonardll
Comment options

Answer selected by Leonardll
Comment options

You must be logged in to vote
3 replies
@PatrickAlphaC
Comment options

@Leonardll
Comment options

@Equious
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants