Skip to content

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

Answered by othaime-en
wxy-sudo asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @wxy-sudo a major error exists in this line deployer = (await getNamedAccounts).deployer
The correct line should be deployer = (await getNamedAccounts()).deployer. It is a subtle mistake but costly.
Please make the necessary changes.

Replies: 4 comments 5 replies

Comment options

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

@wxy-sudo
Comment options

@RoboCrypter
Comment options

@wxy-sudo
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wxy-sudo
Comment options

Answer selected by wxy-sudo
Comment options

You must be logged in to vote
0 replies
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