Skip to content

Cannot read properties of undefined (reading 'length') #5537

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

You must be logged in to vote

@Dhhruvvv This should be accounts

- account: [PRIVATE_KEY],
+ accounts: [PRIVATE_KEY],

And the repository is outdated, you should upgrade it to hardhat-toolbox. Migrating away from hardhat-waffle

And also make sure your private key is defined like this in the .env file.

PRIVATE_KEY=1234567890...

Replies: 1 comment 1 reply

Comment options

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

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