Skip to content

Lesson: 07 Error: invalid address or ENS name (argument="name", value=undefined, code=INVALID_ARGUMENT, version=contracts/5.7.0) #4859

Answered by Umairulislam
umairahmed88 asked this question in Q&A
Discussion options

You must be logged in to vote

The Error suggests that there is a problem with an argument that is being passed to a function, and specifically that the "name" argument is undefined or otherwise invalid.
You should make sure that you are passing a valid address for the priceFeedAddress parameter when you deploy the FundMe contract. You can check the address that was actually passed in by printing the value of priceFeed in your tests, like so:

console.log(await fundMe.priceFeed());

This should help you determine whether the problem is with the deployment or the test code.
Also, cross-check the code from the GitHub Repo

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@umairahmed88
Comment options

Answer selected by umairahmed88
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