lesson 9 .createSubscription is not a function #2395
Replies: 4 comments 1 reply
-
@jorgect207 : Change this line from your deploy script, From this :
To:
It will for sure reslove you issue! |
Beta Was this translation helpful? Give feedback.
-
Can I see your mocks deploy script? |
Beta Was this translation helpful? Give feedback.
-
@jorgect207 Use the ethers method to get the contract const vrfCoordinator = await ethers.getContract(
"VRFCoordinatorV2Mock"
); And it is only deploying mocks because I think your arguments have issues, Make sure these are correct; const args = [
"1",
vrfCoordinatorAddress,
networkConfig[chainId]["keyhash"],
subscriptionId,
"30",
] Their order should be similar to the one you have specified in the contract constructor, check their names and everything related to these as well. |
Beta Was this translation helpful? Give feedback.
-
Try @alymurtazamemon 's solution. If it does not work, push to GitHub. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hello, someone can help me with this problem,
the mock is deploying correctly, this is my code:
Beta Was this translation helpful? Give feedback.
All reactions