diff --git a/lib/cmds/simulator.js b/lib/cmds/simulator.js index 8f2f22f71..a68b27e74 100644 --- a/lib/cmds/simulator.js +++ b/lib/cmds/simulator.js @@ -17,8 +17,8 @@ class Simulator { process.exit(); } - cmds.push("-p " + (this.blockchainConfig.rpcPort || options.port || 8545)); - cmds.push("-h " + (this.blockchainConfig.rpcHost || options.host || 'localhost')); + cmds.push("-p " + (options.port || this.blockchainConfig.rpcPort || 8545)); + cmds.push("-h " + (options.host || this.blockchainConfig.rpcHost || 'localhost')); cmds.push("-a " + (options.numAccounts || 10)); cmds.push("-e " + (options.defaultBalance || 100)); cmds.push("-l " + (options.gasLimit || 8000000));