Description
Getting a random number takes a really long time. After executing the getRandomNumber function, a few minutes go by before I can interact with my random number.
Basically I click getRandomNumber and have to wait 2-3 minutes until the random number shows up in the randomResult variable.
Steps to Reproduce
- Head over to the documentation here : https://docs.chain.link/docs/get-a-random-number/
- Scroll down and click on "Deploy this contract using Remix" (blue outline btn)
- Click on one of the folders that looks like 536123b61468ad4442cfc4278e8de577 then RandomNumberConsumer.sol
- Replace the LINK Token, VRF Coordinator, and Key Hash to be unique to rinkeby https://docs.chain.link/docs/vrf-contracts/
- Navigation to the Solidity Compiler Tab and click on Compile RandomNumber.sol.
- Deploy the contract on Rinkeby
- Copy to contract address and send LINK token to fund the contract.
- Click on the orange getRandomNumber btn in remix
- Click on randomResult and observe how long it takes for the value in randomResult to change. (Keep clicking until it finally changes)
Additional Information
I am not sure if this behavior is intentional or if I need to change up the code. Ideally I would like to have the value of randomResult once the getRandomNumber function finishes executing. Right now I don't know when the value of randomResult will show up.