PatrickAlphaC / hardhat-smartcontract-lottery-fcc

MIT License
117 stars 183 forks source link

TypeError: vrfCoordinatorV2Mock.createSubscription is not a function #197

Closed UnknownBlackman closed 7 months ago

UnknownBlackman commented 7 months ago

Hello, I'm stuck when deploying the lottery contract to hardhat. I get past the deploying mocks stage then when I need to create subscription in order to get my subscriptionId I get the error message that createSubscription() is not a function. I have gone through my code trying to find where I made a mistake but I followed the video perfectly. Can anyone help?

UnknownBlackman commented 7 months ago

It was a personal error. The issue actually came from my deploy script