Lesson 7: FundMe.test.js => On executing <yarn hardhat test> i get following error , (I have gone through all the related discussions). #5281
-
Link to Repo https://github.com/skayp/hh-FundMe
On executing following command:
I get Error in the terminal as:
NOTE Upto this command all the commands work as expected for example FundMe can be deployed at testnet What i have tried:
I have gone through discussions. Some help would be appreciated. 01-deploy-fundMe.js :
00-deploy-mocks.js
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
This error indicates that are is something wrong in your "before each" section, and more specifically the somewhere along the "getContract()" line. This may be due to syntax errors if found in your
|
Beta Was this translation helpful? Give feedback.
-
@skayp Make sure you have hardhat-deploy dependency installed, if not then run this command; npm install -D hardhat-deploy @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers ethers@^5 and add this in hardhat.config.js file; require('hardhat-deploy'); |
Beta Was this translation helpful? Give feedback.
@skayp Update these in hardhat.config.js file;