lesson 17 error TypeError: no matching function (argument="key", value="address", code=INVALID_ARGUMENT, version=6.6.4) #5869
-
|
TypeError: no matching function (argument="key", value="address", code=INVALID_ARGUMENT, version=6.6.4) $ /home/code/hardhat-dao/node_modules/.bin/hardhat run scripts/propose.js --network localhost
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
|
here is my package.json file { |
Beta Was this translation helpful? Give feedback.
-
|
your "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers",
"ethers": "^6.6.4",to this "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
"ethers": "^5.7.2",and import only these into require("@nomiclabs/hardhat-waffle");
require("hardhat-deploy");
require("dotenv").config();I hope this helps |
Beta Was this translation helpful? Give feedback.
-
|
hey i tried to downgrade my ethers but now it is showing |
Beta Was this translation helpful? Give feedback.
your
ethersis version 6, I suggest you downgrade to version 5, so you can follow along with the course.After that is up to you if you want to upgrade to version 6 or not.
change these line
to this
and import only these into
hardhat.config.jsI hope this helps