From e6c55b9ec2c35a55aa130e769d0429ea1b27f8ec Mon Sep 17 00:00:00 2001 From: nefera606 Date: Tue, 1 Aug 2017 12:00:41 +0200 Subject: [PATCH] Update index.js Support for a second account added --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c75b019..0c4886f 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,11 @@ exports.setProvider = function (web3Instance){ web3 = web3Instance; } -exports.setAccount = function (account){ +exports.setOtherAccount = function (){ + return web3.eth.accounts[1]; +} + +exports.setDefaultAccount = function (account){ web3.eth.defaultAccount = account; }