Replies: 4 comments 9 replies
-
You're not doing something right in your deployment script |
Beta Was this translation helpful? Give feedback.
-
With |
Beta Was this translation helpful? Give feedback.
-
This error looks to be in your Raffle.enterRaffle( ) function and I had the same error but I resolved it this way: I just removed the await keyword in the expect ( ) and it worked for me |
Beta Was this translation helpful? Give feedback.
-
If that didn't solve it still Instead of .... Try adding the brackets to the custom error |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In lesson 9 raffle unit testing on local hardhat when i run test "it picks a winner ,reset the lottery, and send money" i got very strange error. One thing keep in mind i am running test on local hardhat
i commented out promise to analyze error i found that vrfCoordinatorV2Mock.fulfillRandomWords is not working and reverted with custom error 'InsufficientBalance()'
i checked all other files and folders especially contracts code with github repo of Patrick so all things are fine.
i did console.log to check requestId. it is returning requestId so problem is not in requestId.
The problem is in vrfCoordinatorV2Mock.fulfillRandomWords
My code is under you can ignore the looping part , map and array i did this to automate picking winner rather than hard coding winner but this is not the problem first i tried with Patrick code but got the same error
Error is this
Beta Was this translation helpful? Give feedback.
All reactions