program -> program, programName

This commit is contained in:
Michael Bradley, Jr 2018-07-11 10:32:47 -05:00
parent 5e1f53a7d8
commit b98101ea3a
1 changed files with 3 additions and 2 deletions

View File

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