-
Hi everyone! I`m trying to deploy my contract to localhost hardhat node, but every time I run npx hardhat run scripts/deploy.js --network localhost I get same error with ethers.js "TypeError: Cannot read property 'getContractFactory' of undefined" deploy.js file:
package.json file:
hardhat.config.js file :
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
you might need to specify deployer and pass it in to |
Beta Was this translation helpful? Give feedback.
-
It`s all because I missed require("@nomiclabs/hardhat-waffle") in hardhat.config.js |
Beta Was this translation helpful? Give feedback.
It`s all because I missed require("@nomiclabs/hardhat-waffle") in hardhat.config.js
I thought it only needs for testing :)