Replies: 2 comments 3 replies
-
Hi !The following line you wrote is an Interaction ( meaning we fetch data ) because you are asking of the Chainlink VRF to get random words that let's you generate a uniqueId. So no, in order to get a generated Id we need to fetch the data from an external source, like you do when fetching the price of a supported token with AggregatorV3Interface for example. winter99 |
Beta Was this translation helpful? Give feedback.
-
Guys, I am trying to understand where the call to the Chainlink VRF is made. I see that the method is in an interface and does not implement the body of the method. Where is it implemented?
|
Beta Was this translation helpful? Give feedback.
-
In lesson 9 of the foundry course, Patrick mentioned the CEI smart contract design framework.
I'd like to ask, in the
pickWinner
function for the Raffle,uint256 requestId = i_vrfCoordinator.requestRandomWords( i_gasLane, i_subscriptionId, REQUEST_CONFRIMATIONS, i_callbackGasLimit, NUM_WORDS }
does this part that involves interacting with Chainlink count as effects (since we imported the contracts) or are they interactions (because they are fetching data from chainlink)?
Beta Was this translation helpful? Give feedback.
All reactions