Lesson 9: Raffle Lottery -Last Unit test case Timeouterror. fulfillRandomWords function not triggering event "WinnerPicked" #3569
-
Hi Everyone, Can someone help me here, I am facing a timeout issue when the below function is called. Seems like the WinnerPicked event is not getting raised.
After reading other posts I did below but that didn't resolve it
From txReceipt, we are receiving RequestId value as 1. Here is the response of txReceipt.events[1].args
Here is the command I am running
Here is the github link where i uploaded project files Adding more info here: I am about to complete the next lesson (Lesson 10: Nextjs full stack) and executed below command to mock the Raffle winner
but I am receiving the winner as "0x0000000000000000000000000000000000000000" always which I am guessing the fulfillRandomWords() override function in my Raffle contract is not even executing. Please help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Everyone, Please ignore the above question. I have resolved it just now. I kept callbackGasLimit very low inside helper hardhat config js. It's working fine after we increase the limit.
If someone facing these issues, I will suggest you try to figure out what went wrong by yourself first by following these steps
|
Beta Was this translation helpful? Give feedback.
Hi Everyone,
Please ignore the above question. I have resolved it just now.
I kept callbackGasLimit very low inside helper hardhat config js. It's working fine after we increase the limit.
Based on the documentation if we don't keep enough callbackGaslimit, the callback function will fail.
If someone facing these issues, I will suggest you try to figure out what went wrong by yourself first by following these steps