mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +00:00
don't use -h option due to bug in ethersim fork v2
This commit is contained in:
parent
063472a07e
commit
589589cb6a
@ -25,7 +25,9 @@ class Simulator {
|
|||||||
let port = (options.port || this.blockchainConfig.rpcPort || 8545);
|
let port = (options.port || this.blockchainConfig.rpcPort || 8545);
|
||||||
|
|
||||||
cmds.push("-p " + (port + (useProxy ? constants.blockchain.servicePortOnProxy : 0)));
|
cmds.push("-p " + (port + (useProxy ? constants.blockchain.servicePortOnProxy : 0)));
|
||||||
cmds.push("-h " + host);
|
if (!ganache) {
|
||||||
|
cmds.push("-h " + host);
|
||||||
|
}
|
||||||
cmds.push("-a " + (options.numAccounts || 10));
|
cmds.push("-a " + (options.numAccounts || 10));
|
||||||
cmds.push("-e " + (options.defaultBalance || 100));
|
cmds.push("-e " + (options.defaultBalance || 100));
|
||||||
cmds.push("-l " + (options.gasLimit || 8000000));
|
cmds.push("-l " + (options.gasLimit || 8000000));
|
||||||
@ -43,7 +45,7 @@ class Simulator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const program = ganache ? 'ganache-cli' : 'testrpc';
|
const program = ganache ? 'ganache-cli' : 'testrpc';
|
||||||
|
console.log(`running: ${program} ${cmds.join(' ')}`);
|
||||||
shelljs.exec(`${program} ${cmds.join(' ')}`, {async : true});
|
shelljs.exec(`${program} ${cmds.join(' ')}`, {async : true});
|
||||||
|
|
||||||
if(useProxy){
|
if(useProxy){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user