From eacbe634b82f73a96b44b2b7f19aff77e7a9c4e8 Mon Sep 17 00:00:00 2001 From: cgewecke Date: Fri, 21 Apr 2017 12:42:47 -0700 Subject: [PATCH] Run testrpc with 35 accounts (uport-proxy) / allow configuration --- exec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exec.js b/exec.js index b3a57af..796b454 100644 --- a/exec.js +++ b/exec.js @@ -25,6 +25,7 @@ const coverageDir = './coverageEnv'; // Env that instrumented .sols are t // Options let workingDir = '.'; // Default location of contracts folder let port = 8555; // Default port - NOT 8545 & configurable via --port +let accounts = 35; // Default number of accounts to run testrpc w let coverageOption = '--network coverage'; // Default truffle network execution flag let silence = ''; // Default log level: configurable by --silence let log = console.log; // Default log level: configurable by --silence @@ -57,6 +58,7 @@ const config = reqCwd.silent(`${workingDir}/.solcover.js`) || {}; if (config.dir) workingDir = config.dir; if (config.port) port = config.port; +if (config.accounts) accounts = config.accounts; if (config.silent) { silence = '> /dev/null 2>&1'; // Silence for solcover's unit tests / CI @@ -77,7 +79,7 @@ if (!config.norpc) { command = './node_modules/solcover/node_modules/ethereumjs-testrpc-sc/bin/testrpc '; } - const options = `--gasLimit ${gasLimitString} --port ${port}`; + const options = `--gasLimit ${gasLimitString} --accounts ${accounts} --port ${port}`; testrpcProcess = childprocess.exec(command + options); log(`Launching testrpc on port ${port}`); } catch (err) {