Skip to content

Commit

Permalink
fix: balance not update after sent tx
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Nov 27, 2019
1 parent dd30986 commit 65e51dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/neuron-wallet/src/services/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ export default class WalletService {

// update addresses txCount and balance
const blake160s = TransactionsService.blake160sOfTx(tx)
const usedAddresses = blake160s.map(blake160 => LockUtils.blake160ToAddress(blake160))
const prefix = NetworksService.getInstance().isMainnet() ? AddressPrefix.Mainnet : AddressPrefix.Testnet
const usedAddresses = blake160s.map(blake160 => LockUtils.blake160ToAddress(blake160, prefix))
AddressesUsedSubject.getSubject().next({
addresses: usedAddresses,
url: core.rpc.node.url,
Expand Down

0 comments on commit 65e51dd

Please sign in to comment.