diff --git a/lib/cmds/simulator.js b/lib/cmds/simulator.js index 2e50feac2..02619ddfa 100644 --- a/lib/cmds/simulator.js +++ b/lib/cmds/simulator.js @@ -44,8 +44,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){