PatrickAlphaC / hardhat-fund-me-fcc

82 stars 184 forks source link

ethers.getContract is not a function #16

Closed chidubemOkafor closed 2 years ago

chidubemOkafor commented 2 years ago

Screenshot 2022-06-15 151930 I got this error "ethers.getContract is not a function" while running "yarn hardhat test"

pro123908 commented 2 years ago

Can you also attach the code snippet ?

PatrickAlphaC commented 2 years ago

Can you please copy paste code instead of screenshot?

Please follow this: https://www.youtube.com/watch?t=19846&v=gyMwXuJrbJQ&feature=youtu.be

And can you ask in the main repo? Thank you.

batuhankacmaz commented 2 years ago

Thats why you dont add to @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers I think. If you work with npm please npm i -D @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers. If you use yarn yarn add npm @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers --dev