lesson-14 questions about CONSTRUCTOR. #2828
-
Hey! As I understand |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@TimeKeyRoll Good Question, See this green |
Beta Was this translation helpful? Give feedback.
-
constructor(address vrfCoordinatorV2) This is just a parameter of our constructor; we are not fetching it or anything from the packages (the name is just for its aptness--you can even put TimeKeyRoll). Since, you know that when we deploy the contract--where this code snippet is from--in a Thus, it can be any address syntactically; however, logically speaking, for our code to work as intended, we should provide it a VRFCoordinator address in the So, it is just an |
Beta Was this translation helpful? Give feedback.
This is just a parameter of our constructor; we are not fetching it or anything from the packages (the name is just for its aptness--you can even put TimeKeyRoll).
Since, you know that when we deploy the contract--where this code snippet is from--in a
deploy
script, we provide theargs
which represent the parameters of the constructor (of the contract).Thus, it can be any address syntactically; however, logically speaking, for our code to work as intended, we should provide it a VRFCoordinator address in the
deploy
script.So, it is just an
address
type parameter which should be provided a VRFCoordinator address in thedeploy
script.