Skip to content

Lesson 4: chain id is different from the one shown on ganache #453

Answered by cromewar
CedricVo91 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @CedricVo91 it depends on the network you are using, ganache-cli and brownie networks has the default chainId of 1337, as you are trying to connect brownie with ganache ui (on the ganache interface) you will experience a compatibility issue as brownie (or web3) will expect the chainId remains at 1337.

So you might change the chain ID on ganache ui to 1337 as you did, or you can configure a new brownie network declaring explicitly you want to use the chain ID 5777.

Note: I mentioned brownie as you'll start using it on lesson 5.

Best regards, Cromewar.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cromewar
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