Skip to content

TypeError: Cannot read properties of undefined (reading 'length') #4759

Answered by alymurtazamemon
pratokko asked this question in Q&A
Discussion options

You must be logged in to vote

@pratokko Make sure you have this in hardhat config file;

namedAccounts: {
  deployer: {
    default: 0, // here this will by default take the first account as deployer
  },
},

Replies: 3 comments 3 replies

Comment options

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

Comment options

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

Comment options

You must be logged in to vote
1 reply
@pratokko
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
4 participants