Skip to content

Lesson 15 - Cannot read properties of undefined (reading 'toString') #2450

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

You must be logged in to vote

Hey @zeledorka run yarn hardhat console and in the console type network.config.chainId.toString() and see if it returns a value back to you.
And I hope you are running this on hardhat network not localhost because I don't see any localhost network configuration in your hardhat.config.js file.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@zeledorka
Comment options

@ghost
Comment options

@ghost
Comment options

Comment options

You must be logged in to vote
2 replies
@zeledorka
Comment options

@highHumann
Comment options

Answer selected by zeledorka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants