Skip to content

lesson 17 error TypeError: no matching function (argument="key", value="address", code=INVALID_ARGUMENT, version=6.6.4) #5869

Answered by alfaqi
muhammet72 asked this question in Q&A
Discussion options

You must be logged in to vote

your ethers is 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

"@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 hardhat.config.js

require("@nomiclabs/hardhat-waffle");
require("hardhat-deploy");
require("dotenv").config();

I hope this helps

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@anhtudo97
Comment options

Answer selected by muhammet72
Comment options

You must be logged in to vote
6 replies
@vishnu-geek
Comment options

@alfaqi
Comment options

@soheilzolfaghari
Comment options

@alfaqi
Comment options

@soheilzolfaghari
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants