0x0000000000000000000000000000000000000000 is the new winner! #1518
-
HI! I've deployed my lottery to the Rinkeby network as described at 8:18 of the course. The error is as stated in the topic. I've changed time.sleep to longer amounts, checked brownie-config.yaml, but results are still the same. Deployed here (etherscan) Advice is much appreciated. I've also tried to deploy it to Kovan, but for some reason it requests formidable amounts of ETH to do so.
My code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @vaporm Cheers, Vasiliy. |
Beta Was this translation helpful? Give feedback.
Hello @vaporm
This is a common error, but you don't have to worry about it, the reason is simple
As you are using VRF from chainlink, the response of the node providing the random number will take some time to gets processed, because remember
fulfillRandomness
is an asynchronous function.So, you can add a lot longer
time.sleep
on python to get the correct winner, or you can deploy to rinkeby and after some time you can check that the winner is actually chosen, but as I said It'll take time to process.Cheers, Vasiliy.