program -> program, programName

This commit is contained in:
Michael Bradley, Jr 2018-07-11 10:32:47 -05:00 committed by Iuri Matias
parent 36b52742bf
commit db7553cf0f
1 changed files with 3 additions and 2 deletions

View File

@ -45,8 +45,9 @@ class Simulator {
cmds.push("-b \"" + (simulatorBlocktime) +"\"");
}
const program = ganache ? 'ganache-cli' : 'testrpc';
console.log(`running: ${program} ${cmds.join(' ')}`);
const programName = ganache ? 'ganache-cli' : 'testrpc';
const program = ganache ? ganache : testrpc;
console.log(`running: ${programName} ${cmds.join(' ')}`);
shelljs.exec(`${program} ${cmds.join(' ')}`, {async : true});
if(useProxy){