Skip to content

Lesson 6: ganache Local RPC #278

Answered by cromewar
Cesarioo asked this question in Q&A
Oct 29, 2021 · 1 comments · 11 replies
Discussion options

You must be logged in to vote

Hello @Cesarioo yes this happens because brownie uses the default ganache-cli network if you don't specify another one, so if you want to use your ganache UI network you should add it first to brownie networks.

For example let's suppose your ganache UI looks like this:

Yo can add it using:

brownie networks add Ethereum ganache-local host=http://127.0.0.1:7545 chainid=5777

Where:

Ethereum: is the netowrk type
ganache-local: is the name, you can name it as you want.
The hos and the chainid comes from ganache as you can see on the image.

So when deploying you must use something like this:

brownie run scripts/deploy.py --network ganache-local

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@cromewar
Comment options

@sudolink
Comment options

@Vonnie187
Comment options

@cromewar
Comment options

@Vonnie187
Comment options

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
6 participants