Lesson 9: Error when deploying contracts #1705
-
I'm following lesson 9, and i reached the point where we're deploying the raffle and the mock contract. This is the mock deploy file:
And this is the raffle deploy file:
I run npx hardhat deploy and I keep getting this error: Here's the github repo: https://github.com/ralph27/Hardhat-Raffle |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You are getting this error because you are missing an important hardhat dependency "hardhat-waffle" npm install --save-dev @nomiclabs/hardhat-waffle and in hardhat.config.js add require("@nomiclabs/hardhat-waffle"); This should work! |
Beta Was this translation helpful? Give feedback.
-
The issue lies in You sure the path or the path name |
Beta Was this translation helpful? Give feedback.
You are getting this error because you are missing an important hardhat dependency "hardhat-waffle"
try
and in hardhat.config.js add
This should work!