Skip to content

Lesson 9: TypeError: vrfCoordinatorV2Mock.createSubscription is not a function #1293

Discussion options

You must be logged in to vote

Instead of

const vrfCoordinatorV2Mock = await ethers.getContractFactory("VRFCoordinatorV2Mock");

Try this,

const vrfCoordinatorV2Mock = await ethers.getContract("VRFCoordinatorV2Mock")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Vsatyam013
Comment options

Answer selected by TradMod
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