1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-28 03:08:30 +00:00

fix for disappearing accounts balance after block is mined

This commit is contained in:
Szymon Lesisz 2018-09-19 18:46:50 +02:00
parent 34e00d392e
commit c9b9359e70

View File

@ -111,7 +111,7 @@ export const onBlockMined = (coinInfo: any): PromiseAction<void> => async (dispa
dispatch( Web3Actions.updateAccount(accounts[i], a, network) ) dispatch( Web3Actions.updateAccount(accounts[i], a, network) )
} else { } else {
// there are no new txs, just update block // 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 // HACK: since blockbook can't work with smart contracts for now
// try to update tokens balances added to this account using Web3 // try to update tokens balances added to this account using Web3