Lesson 9 : (TypeError: vrfCoordinatorV2Mock.createSubscription is not a function) #5810
Unanswered
MahzyarSaadat
asked this question in
Q&A
Replies: 3 comments 1 reply
-
associatedripo: https://github.com/MahzyarSaadat/Raffle.sol-fcc |
Beta Was this translation helpful? Give feedback.
0 replies
-
In your file
|
Beta Was this translation helpful? Give feedback.
1 reply
-
First of all
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers", with this "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13", use const vrfCoordinatorV2Mock = await ethers.getContract("VRFCoordinatorV2Mock", deployer) I hope it help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello there,
When i use the "ethers" to get the "Mock contract" ,this error occurs:
And when i try to get the "mock" by using "deployments" , i see this error:
Also , I tied to use the compatible packages , because "hardhat-deploy" package has lots of problem with "ethers@^6"
It's a really comfusing situation ....
Beta Was this translation helpful? Give feedback.
All reactions