Lesson 10: Tx Reverts when I press the "Enter Raffle" button in the front end #1598
Unanswered
Nitro-lens
asked this question in
Q&A
Replies: 1 comment 4 replies
-
@Nitro-lens Do one thing first. Restart your local hardhat node and same time reset the metamask. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Alright, so I reached till this point: https://youtu.be/gyMwXuJrbJQ?t=64672 , and then, when I clicked the
Enter Raffle
Button, it gave me this error:The fun thing is that IT MOVES THE FUNDS AWAY FROM MY WALLET when I send the tx, but in VS CODE it gives me that weird error, followed by some files. Here's my
LotteryEntrance
:Here's my contract:
I got the ABI & the contract address and everything seemed to work well until a certain point (it used to work without any errors, but now it appeared). I think the problem has something to do with the
"EnterRaffle"
function since it gets theEntranceFee
just fineAny Idea how I can stop that error from appearing?

Beta Was this translation helpful? Give feedback.
All reactions