Skip to content

Lesson 7 : TypeError: Cannot read properties of undefined (reading 'length') #5468

Answered by alymurtazamemon
usman-2000 asked this question in Q&A
Discussion options

You must be logged in to vote

@usman-2000 Yes you are not using the length property, but you are using the getNamedAccounts function in your deploy script which is checking for any named accounts in the hardhat.config.js file but it does not find the named accounts. Are you sure you added namedAccounts object in config file?

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@usman-2000
Comment options

@usman-2000
Comment options

@alymurtazamemon
Comment options

@usman-2000
Comment options

@usman-2000
Comment options

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