From c9b9359e70b462f3610d896c9b583d704014df3a Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Wed, 19 Sep 2018 18:46:50 +0200 Subject: [PATCH] fix for disappearing accounts balance after block is mined --- src/actions/BlockchainActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/BlockchainActions.js b/src/actions/BlockchainActions.js index 353cd345..5414df9d 100644 --- a/src/actions/BlockchainActions.js +++ b/src/actions/BlockchainActions.js @@ -111,7 +111,7 @@ export const onBlockMined = (coinInfo: any): PromiseAction => async (dispa dispatch( Web3Actions.updateAccount(accounts[i], a, network) ) } else { // there are no new txs, just update block - dispatch( AccountsActions.update( { ...accounts[i], ...a }) ); + dispatch( AccountsActions.update( { ...accounts[i], block: a.block }) ); // HACK: since blockbook can't work with smart contracts for now // try to update tokens balances added to this account using Web3