From db7553cf0ff7da7e5b2111cc5505e2d35b61b3c9 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Wed, 11 Jul 2018 10:32:47 -0500 Subject: [PATCH] program -> program, programName --- lib/cmds/simulator.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cmds/simulator.js b/lib/cmds/simulator.js index a24da727..d72c04d2 100644 --- a/lib/cmds/simulator.js +++ b/lib/cmds/simulator.js @@ -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){