From 6d53e643f237ae42179ab9e4fced367afe4b213e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Thu, 15 Mar 2018 14:40:21 +0000 Subject: [PATCH] fix rpc server launch --- lib/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/app.js b/lib/app.js index 1ae8c47..0a44031 100644 --- a/lib/app.js +++ b/lib/app.js @@ -173,8 +173,8 @@ class App { launchTestrpc() { return new Promise((resolve, reject) => { if (!this.norpc) { - const defaultRpcOptions = `--gasLimit ${gasLimitHex} --accounts ${this.accounts} --port ${this.port}`; - const options = this.testrpcOptions + ` --gasLimit ${gasLimitHex}` || defaultRpcOptions; + const defaultRpcOptions = `--accounts ${this.accounts} --port ${this.port}`; + const options = (this.testrpcOptions || defaultRpcOptions) + ` --gasLimit ${gasLimitHex}`; const command = './node_modules/ethereumjs-testrpc-sc/build/cli.node.js '; // Launch