menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Truffle Suite

Sweet tools for smart contracts

Channels
Team

ganache-cli --networkId does not work

November 13, 2020 at 11:27pm

ganache-cli --networkId does not work

November 13, 2020 at 11:27pm
When running ganache-cli, I set the option --networkId. But when I connect ganache-cli via MetaMask, MetaMask says ganache-cli returns 0x539(1337, default chain ID of ganache-cli). I know network ID and chain ID can be different from each other but can't find chain ID option. Besides, when truffle migrating, --network_id should be same as networkId in ganache-cli. This is somewhat confused.
What is wrong here?

November 13, 2020 at 11:32pm
Oh, I just checked ganache-cli --help and can't find chainID in ganache-cli v6.10.2. There is chainId option now! I will try. Thanks.
Edited
How about Ganache GUI? Dose it have chain ID option? Can't find in v2.5.4
Edited
GUI does not expose this option right now. Sorry!
like-fill
1