-
Pls help, my code is fine but I keep getting a chainId of 1337 instead of 31337. I'm unable to interact with function in my contract due to the chainId mismatch. This is how am calling the chainId.
|
Beta Was this translation helpful? Give feedback.
Answered by
Tosinkoa
Jul 1, 2022
Replies: 2 comments
-
I suggest you check the network you've deployed your app to make sure it has the correct chainId. For example, ETH has a chainID of 1, while BNB has a chainID of 56. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This solve my issue |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Tosinkoa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This solve my issue
https://hardhat.org/metamask-issue.