Skip to content

TypeError: vrfCoordinatorV2Mock.createSubsctiption is not a function #2216

Answered by alymurtazamemon
mmuaaz asked this question in Q&A
Discussion options

You must be logged in to vote

@mmuaaz Replace these:

- const vrfCoordinatorV2Mock = await deployments.get("VRFCoordinatorV2Mock")
+ const vrfCoordinatorV2Mock = await ethers.getContract("VRFCoordinatorV2Mock");
- const transactionResponse = await vrfCoordinatorV2Mock.createSubsctiption() 
+ const transactionResponse = await vrfCoordinatorV2Mock.createSubscription();

Replies: 4 comments 24 replies

Comment options

You must be logged in to vote
8 replies
@othaime-en
Comment options

@mmuaaz
Comment options

@othaime-en
Comment options

@mmuaaz
Comment options

@othaime-en
Comment options

Comment options

You must be logged in to vote
16 replies
@alymurtazamemon
Comment options

@alymurtazamemon
Comment options

@alymurtazamemon
Comment options

@mmuaaz
Comment options

@mmuaaz
Comment options

Answer selected by mmuaaz
Comment options

You must be logged in to vote
0 replies
Comment options

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