From 7d5935dc0b9c0b0181fb0472c7c89c9989a5be82 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Tue, 26 Feb 2019 09:31:20 +0000 Subject: [PATCH] fix: fetch accounts --- .../embark/src/lib/modules/blockchain_connector/provider.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/embark/src/lib/modules/blockchain_connector/provider.js b/packages/embark/src/lib/modules/blockchain_connector/provider.js index 80ed73884..cee278ae1 100644 --- a/packages/embark/src/lib/modules/blockchain_connector/provider.js +++ b/packages/embark/src/lib/modules/blockchain_connector/provider.js @@ -18,8 +18,7 @@ class Provider { this.nonceCache = {}; this.events.setCommandHandler("blockchain:provider:contract:accounts:get", cb => { - const accounts = this.accounts.map(a => a.address); - cb(accounts); + cb(this.accounts); }); }