HomePhabricator

[Cashtab] [p6 and final of normalizeBalance improvements] Remove double…

Description

[Cashtab] [p6 and final of normalizeBalance improvements] Remove double definition of this function in useWallet

Summary:
T2601

Depends on D11847

Remove the normalizeBalance function from useWallet.js, as it is already defined and unit tested in CashMethods.js. Adjust the input to be the needed nonSlpUtxos array and not its parent slpBalancesAndUtxos object

Test Plan: npm start and make sure your wallet has the same balance as before, works normally.

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

Differential Revision: https://reviews.bitcoinabc.org/D11848

Details

Provenance
bytesofmanAuthored on Aug 11 2022, 23:56
bytesofmanPushed on Aug 12 2022, 15:49
Reviewer
Restricted Project
Differential Revision
D11848: [Cashtab] [p6 and final of normalizeBalance improvements] Remove double definition of this function in useWallet
Parents
rABC6ba5e0d6f442: [Cashtab] [p5 normalizeBalance fix] Improve name of normalizeBalance function
Branches
Unknown
Tags
Unknown