We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063472a commit 589589cCopy full SHA for 589589c
lib/cmds/simulator.js
@@ -25,7 +25,9 @@ class Simulator {
25
let port = (options.port || this.blockchainConfig.rpcPort || 8545);
26
27
cmds.push("-p " + (port + (useProxy ? constants.blockchain.servicePortOnProxy : 0)));
28
- cmds.push("-h " + host);
+ if (!ganache) {
29
+ cmds.push("-h " + host);
30
+ }
31
cmds.push("-a " + (options.numAccounts || 10));
32
cmds.push("-e " + (options.defaultBalance || 100));
33
cmds.push("-l " + (options.gasLimit || 8000000));
@@ -43,7 +45,7 @@ class Simulator {
43
45
}
44
46
47
const program = ganache ? 'ganache-cli' : 'testrpc';
-
48
+ console.log(`running: ${program} ${cmds.join(' ')}`);
49
shelljs.exec(`${program} ${cmds.join(' ')}`, {async : true});
50
51
if(useProxy){
0 commit comments