-
I am getting this error while stage testing And my code: https://github.com/aman879/DecentralizedLotteryContract |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I calculate time taken to catch WinnerPicked event in my etherscan and it exceeded 40000ms(40s) because of automation of 30s + 40-50s for generating request id which was greater than 40000ms. |
Beta Was this translation helpful? Give feedback.
-
Did the answer work for you ? |
Beta Was this translation helpful? Give feedback.
-
It worked for me when I put mocha : {
timeout : 200000,
} in my hardhat.config If that did not work you can try mocha : {
setTimeout : 200000,
} |
Beta Was this translation helpful? Give feedback.
I calculate time taken to catch WinnerPicked event in my etherscan and it exceeded 40000ms(40s) because of automation of 30s + 40-50s for generating request id which was greater than 40000ms.
So i increased the timeout for fulFillRandomWords to 120000ms(120s).
It worked.
outPut: