Skip to content

LESSON 9: -VRFCoordinatorV2Mock.fulfillRandomWords question #1037

Answered by Chris-Gan
AlexK020908 asked this question in Q&A
Discussion options

You must be logged in to vote

here is my shallow understanding and hopes it will help. Personally there are some confusions I met when clarifying myself with the problem above:

  1. There are two fulfillRandomWords() method one is from our own Raffle.sol and another is from VRFCoordinatorV2Mock.sol by which both methods will be called sequentially in one random word request, hence there is nothing like overriding occurs here. As a reminder, we need the VRFCoordinatorV2Mock.sol contract because VRFCoordinatorV2Mock.sol is inheriting VRFCoordinatorV2Interface interface and in our Raffle.sol contract, we are having an immutable to store a contract of type VRFCoordinatorV2Interface and we will call the requestRandomWords()

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@AlexK020908
Comment options

@AlexK020908
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by AlexK020908
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants