PatrickAlphaC / hardhat-smartcontract-lottery-fcc

MIT License
117 stars 182 forks source link

TypeError: vrfCoordinatorV2Mock.createSubscription is not a function #139

Closed Sravan0x3 closed 1 year ago

Sravan0x3 commented 1 year ago

getting TypeError: vrfCoordinatorV2Mock.createSubscription is not a function error when trying to deploy.

        const transactionResponse = await vrfCoordinatorV2Mock.createSubscription()
        const transactionReceipt = await transactionResponse.wait(1)
        subscriptionId = transactionReceipt.events[0].args.subId
PatrickAlphaC commented 1 year ago

Can you:

  1. Make this a discusson on the full repo? https://github.com/smartcontractkit/full-blockchain-solidity-course-js/
  2. Follow this section for formatting questions? https://www.youtube.com/watch?t=19846&v=gyMwXuJrbJQ&feature=youtu.be