-
Hi, Timestamp: 5:37:00 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
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:
Where: Ethereum: is the netowrk type So when deploying you must use something like this:
|
Beta Was this translation helpful? Give feedback.
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