Skip to content

Commit 589589c

Browse files
committed
don't use -h option due to bug in ethersim fork v2
1 parent 063472a commit 589589c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/cmds/simulator.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ class Simulator {
2525
let port = (options.port || this.blockchainConfig.rpcPort || 8545);
2626

2727
cmds.push("-p " + (port + (useProxy ? constants.blockchain.servicePortOnProxy : 0)));
28-
cmds.push("-h " + host);
28+
if (!ganache) {
29+
cmds.push("-h " + host);
30+
}
2931
cmds.push("-a " + (options.numAccounts || 10));
3032
cmds.push("-e " + (options.defaultBalance || 100));
3133
cmds.push("-l " + (options.gasLimit || 8000000));
@@ -43,7 +45,7 @@ class Simulator {
4345
}
4446

4547
const program = ganache ? 'ganache-cli' : 'testrpc';
46-
48+
console.log(`running: ${program} ${cmds.join(' ')}`);
4749
shelljs.exec(`${program} ${cmds.join(' ')}`, {async : true});
4850

4951
if(useProxy){

0 commit comments

Comments
 (0)