From 4499fc6c13e7b95d706b441ce062f82f3894c59a Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 27 Jun 2015 22:20:07 -0400 Subject: [PATCH] restructure; move code from tasks into libs --- lib/blockchain.js | 2 ++ lib/deploy.js | 1 - test/test.js | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 test/test.js diff --git a/lib/blockchain.js b/lib/blockchain.js index d0044d5a..de100349 100644 --- a/lib/blockchain.js +++ b/lib/blockchain.js @@ -24,6 +24,8 @@ startChain = function(env) { } cmd += "--mine "; + + //TODO: this should be configurable cmd += "--maxpeers 0 "; if (config.account.password !== void 0) { diff --git a/lib/deploy.js b/lib/deploy.js index c4e7784b..764fcfc9 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -25,7 +25,6 @@ deployContracts = function(env, contractFiles, destFile) { console.log("address is : " + primaryAddress); result = "web3.setProvider(new web3.providers.HttpProvider('http://" + blockchainConfig.rpcHost + ":" + blockchainConfig.rpcPort + "'));"; - result += "web3.eth.defaultAccount = web3.eth.accounts[0];"; contractDependencies = {}; diff --git a/test/test.js b/test/test.js new file mode 100644 index 00000000..6cb53b31 --- /dev/null +++ b/test/test.js @@ -0,0 +1,2 @@ +EmbarkSpec = require('../lib/test.js').Tests; +