Skip to content

Lesson 10 - script/mockOffchain.js vs VRFCoordinatorV2Mock.sol ? are they same ? #2540

Answered by krakxn
tsuccar asked this question in Q&A
Discussion options

You must be logged in to vote

There is no similarity between them.

VRFCoordinatorV2Mock is a contract, and used for randomness (i.e. fulfillRandomWords). Essentially, it is a random function (VRF = verifiable random function).

Whereas, mockOffchain is a script, and used arbitrarily w/ its logic primarily as a conditional ("checker") for upkeep; ultimately, used for integration w/ the front-end section.

Replies: 2 comments 2 replies

Comment options

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

@krakxn
Comment options

Comment options

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