Skip to content

Lesson 9: Error when deploying contracts #1705

Answered by adityabhattad2021
ralph27 asked this question in Q&A
Discussion options

You must be logged in to vote

You are getting this error because you are missing an important hardhat dependency "hardhat-waffle"
try

npm install --save-dev @nomiclabs/hardhat-waffle

and in hardhat.config.js add

require("@nomiclabs/hardhat-waffle");

This should work!

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ralph27
Comment options

@adityabhattad2021
Comment options

Answer selected by ralph27
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants