mirror of https://github.com/embarklabs/embark.git
[m] Simplified networkId check for simulator.
This commit is contained in:
parent
824a234d76
commit
cc39931852
|
@ -63,7 +63,7 @@ class Simulator {
|
|||
// Setting up network id for simulator from blockchainConfig or options.
|
||||
// Otherwise ganache-cli would make random network id.
|
||||
let networkId = this.blockchainConfig.networkId || options.networkId;
|
||||
if (typeof networkId != 'undefined') {
|
||||
if (networkId) { // Don't handle networkId=="0" because it is not a valid networkId for ganache-cli.
|
||||
cmds.push("--networkId " + networkId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue