Closed Aviksaikat closed 2 years ago
Hi,
I ran into the same issue, turned out the chainlink node takes quite some time to return the random number.
Maybe you could try to wait longer in :
sleep(180)
yah I'm waiting 180
secs
I changed the sleep time to 240 and then it worked. 60 seconds is too less.
Awesome!!
@PatrickAlphaC sorry for the ping but have you added new examples? Yesterday I was following the video & added the waiting time of
60 sec
& the tests ran successfully. Funny thing when I'm trying to run the script today it's giving me the winner is0x0000000000000000000000000000000000000000
both inganache
& inrinkeby
. This time I increased the waiting time to180
& added some extra fees still the same. I checked the returnedrandom value
& it's0
. So the chainlink node is not returning a random value maybe. here is myLottery.sol
deploy_lottery.py