From 16e897d5d8425405730a353cb628d24aaa2a0a71 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Thu, 12 Jul 2018 16:03:56 -0500 Subject: [PATCH] rm commented code and extra whitespace --- lib/cmds/simulator.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/cmds/simulator.js b/lib/cmds/simulator.js index 48e4711a..31024c73 100644 --- a/lib/cmds/simulator.js +++ b/lib/cmds/simulator.js @@ -12,13 +12,7 @@ class Simulator { run(options) { let cmds = []; - const testrpc = shelljs.which('testrpc'); - const ganache = shelljs.which('ganache-cli-embark'); - // if (!testrpc && !ganache) { - // this.logger.warn(__('%s is not installed on your machine', 'Ganache CLI (TestRPC)')); - // this.logger.info(__('You can install it by running: %s', 'npm -g install ganache-cli')); - // process.exit(); - // } + const ganache = path.join(__dirname, '../../node_modules/.bin/ganache-cli'); let useProxy = this.blockchainConfig.proxy || false; let host = (options.host || this.blockchainConfig.rpcHost || 'localhost'); @@ -44,8 +38,6 @@ class Simulator { cmds.push("-b \"" + (simulatorBlocktime) +"\""); } - // const programName = ganache ? 'ganache-cli' : 'testrpc'; - // const program = ganache ? ganache : testrpc; const programName = 'ganache-cli'; const program = ganache; console.log(`running: ${programName} ${cmds.join(' ')}`); @@ -55,7 +47,6 @@ class Simulator { let ipcObject = new Ipc({ipcRole: 'client'}); proxy.serve(ipcObject, host, port, false); } - } }