Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Lesson 4 says (unless I misunderstood) that we should use the "Network ID" reported by Ganache as chain ID for the transaction. In my case, Ganache reports a Network ID of 5777 (see screen capture below), but if I use that, web3.py complains when I run deploy.py with the following message:

web3.exceptions.ValidationError: The transaction declared chain ID 5777, but the connected node is on 1337

When I set my chain ID to 1337, everything goes fine and deploy.py executes properly. Any idea why I have this behavior ? Searched the documentation and the web in general to no avail...

Thanks.

image

You must be logged in to vote

I ran into the same problem, what I did was to go into the settings of ganache->server->network ID in which I changed my network ID to 1337. This will change your address and private key so make sure to update those as well in your code.

Replies: 1 comment · 4 replies

Comment options

I ran into the same problem, what I did was to go into the settings of ganache->server->network ID in which I changed my network ID to 1337. This will change your address and private key so make sure to update those as well in your code.

You must be logged in to vote
4 replies
@pythoulon
Comment options

Glad to see it's not just me 😁. Seems like a problem with Ganache. Anyway, it was not really blocking. Thanks for your reply.

@PatrickAlphaC
Comment options

Awesome work hear all! Great Q&A

@JamiDEV
Comment options

I had the same issue, thanks for the update.

@marginalfriend
Comment options

I also ran into the same issue, but I fixed it by only changing the chain_id to 1337 as the machine wished and not change the server settings, will that cause any other problem?

Answer selected by pythoulon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.