Skip to content

Lesson 7 : Unit test error - TypeError: no matching function (argument="key", value="getPriceFeed", code=INVALID_ARGUMENT, version=6.6.7) #5961

Closed Answered by Nlferu
kamalchakma1 asked this question in Q&A
Discussion options

You must be logged in to vote

@kamalchakma1

Then you have incorrectly downgraded ethers version. Ethers version 6 uses getAddress() function to retrieve the contract address, while the previous version 5 uses .address property. If you are still using ethers 6 (seems like you do) then replace .address with .getAddress() and it should fix your issue

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@kamalchakma1
Comment options

@Nlferu
Comment options

Answer selected by kamalchakma1
@kamalchakma1
Comment options

@Nlferu
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
2 participants