Skip to content

Lesson 9: Raffle Lottery -Last Unit test case Timeouterror. fulfillRandomWords function not triggering event "WinnerPicked" #3569

Answered by AshishLach
AshishLach asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Current one:
callbackGasLimit: "50000",

Changed to 
callbackGasLimit: "500000",

If someone facing these issues, I will suggest you try to figure out what went wrong by yourself first by following these steps

    • Clone the entire project from Pattric GitHub and test it out.
    • If the cloned project is working fine, then something we might have missed in our project.
    • Copy and Paste each file into yo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AshishLach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant