mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-05 07:38:47 +00:00
comment about potential incorrect balance with contracts
This commit is contained in:
parent
c1fdada46d
commit
25548debd0
@ -141,6 +141,9 @@ export const onBlockMined = (network: string): PromiseAction<void> => async (
|
|||||||
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
|
||||||
|
// TODO: There still could be internal transactions as a result of contract
|
||||||
|
// If that's the case, account balance won't be updated
|
||||||
|
// Currently waiting for deprecating web3 and utilising new blockbook
|
||||||
dispatch(AccountsActions.update({ ...accounts[i], block: a.block }));
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user