ethers.getContract() #1158
Replies: 3 comments 2 replies
-
@GaneshDonikena I believe it is getting your deployed mock |
Beta Was this translation helpful? Give feedback.
-
getContract uses the contract file. So, the end result is it assigns the information about VRFCoordinatorV2Mock contract to the variable. In simple terms, the variable has the VRFCoordinatorV2Mock contract. If you are technical: It takes the most recent contract instance of VRFCoordinatorV2Mock; added with a deployer, it becomes even more specific |
Beta Was this translation helpful? Give feedback.
-
@GaneshDonikena |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone! , is ethers.getContract() taking contract file or deploy file in the below file:
const vrfCoordinatorV2Mock = await ethers.getContract("VRFCoordinatorV2Mock")
Beta Was this translation helpful? Give feedback.
All reactions