Lesson 6 network.config.chainID using Goerli testnet #1637
navillanueva
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To anyone using the goerli testnet network instead of the rinkeby one, like in the video, you might come across this error.
When executing:
If you console.log this value it will return undefined, where it should actually return 420
I was using goerli testnet since in alchemy it states that the rinkeby testnet will be deprecated soon due to the Ethereum merge.
I am unaware as to why it returns undefined. My guess is that the goerli testnet may not be added to hardhat yet, but i dont know why it doesn´t get the chainId value stated in the hardhat.config.js file. But i would like to know exactly why this occurs.
To fix this just use the Rinkeby testnet and then the network.config.chainId value will return 4
Beta Was this translation helpful? Give feedback.
All reactions