Skip to content

Commit 0a2a26f

Browse files
committed
fix network config type
1 parent 5c05b7f commit 0a2a26f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/geth_commands.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ GethCommands.prototype.listAccountsCommand = function() {
5454
cmd += "--testnet ";
5555
} else if (config.networkType === 'olympic') {
5656
cmd += "--olympic ";
57+
} else if (config.networkType === 'custom') {
58+
cmd += "--networkid " + config.networkId + " ";
5759
}
5860

5961
if (config.datadir) {
@@ -80,9 +82,7 @@ GethCommands.prototype.mainCommand = function(address) {
8082
cmd += "--testnet ";
8183
} else if (config.networkType === 'olympic') {
8284
cmd += "--olympic ";
83-
}
84-
85-
if (config.networkType === 'custom') {
85+
} else if (config.networkType === 'custom') {
8686
cmd += "--networkid " + config.networkId + " ";
8787
}
8888

0 commit comments

Comments
 (0)