[m] Simplified networkId check for simulator.

This commit is contained in:
hodlbank 2018-08-16 18:09:12 +00:00 committed by Iuri Matias
parent 824a234d76
commit cc39931852
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class Simulator {
// Setting up network id for simulator from blockchainConfig or options. // Setting up network id for simulator from blockchainConfig or options.
// Otherwise ganache-cli would make random network id. // Otherwise ganache-cli would make random network id.
let networkId = this.blockchainConfig.networkId || options.networkId; 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); cmds.push("--networkId " + networkId);
} }