From cee45689441e03d9331336b78224cb591ed2ee71 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Sun, 30 Apr 2017 12:07:14 +0300 Subject: [PATCH] full mode get addr fix --- react/src/actions/actionCreators.js | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/react/src/actions/actionCreators.js b/react/src/actions/actionCreators.js index 81c7ef9..859fb50 100644 --- a/react/src/actions/actionCreators.js +++ b/react/src/actions/actionCreators.js @@ -305,6 +305,10 @@ export function dismissToasterMessage() { export function addCoin(coin, mode) { console.log('coin, mode', coin + ' ' + mode); + startIguanaInstance(mode, coin) + .then(function(json) { + console.log('addCoin+startIguanaInstance', json); + }); if (mode === '-1') { return dispatch => { dispatch(shepherdGetConfig(coin, mode)); @@ -838,8 +842,19 @@ export function addPeerNode(coin, ip) { } export function getAddressesByAccountState(json, coin, mode) { - json = json.result.map(res => Object.assign({}, res, { 'address': res })); - console.log('getAddressesByAccountState', json); + if (mode === 'full') { + let publicAddressArray = []; + + for (let i = 0; i < json.result.length; i++) { + publicAddressArray.push({ + 'address': json.result[i], + 'amount': 'N/A' + }); + } + + json.result = publicAddressArray; + } + if (mode === 'basilisk') { getDexBalance(coin, mode, json.result); }