fix network config type
This commit is contained in:
parent
5c05b7f8d9
commit
0a2a26fd29
|
@ -54,6 +54,8 @@ GethCommands.prototype.listAccountsCommand = function() {
|
|||
cmd += "--testnet ";
|
||||
} else if (config.networkType === 'olympic') {
|
||||
cmd += "--olympic ";
|
||||
} else if (config.networkType === 'custom') {
|
||||
cmd += "--networkid " + config.networkId + " ";
|
||||
}
|
||||
|
||||
if (config.datadir) {
|
||||
|
@ -80,9 +82,7 @@ GethCommands.prototype.mainCommand = function(address) {
|
|||
cmd += "--testnet ";
|
||||
} else if (config.networkType === 'olympic') {
|
||||
cmd += "--olympic ";
|
||||
}
|
||||
|
||||
if (config.networkType === 'custom') {
|
||||
} else if (config.networkType === 'custom') {
|
||||
cmd += "--networkid " + config.networkId + " ";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue