Page MenuHomePhabricator

[Cashtab] [Simplify wallet structure p3] Remove unused utxos array
ClosedPublic

Authored by bytesofman on Nov 23 2022, 09:11.

Details

Summary

T2663

Depends on D12592

Remove the unused utxos array from wallet state.

Because isValidStoredWallet must recognize the wallets from before this stack and after this stack as valid, adjust unit tests and mocks accordingly.

Test Plan

Review unit test adjustments and npm test
npm start
Wait for update to run
Change wallets
Wait for update to run
Observe local storage and see that wallet state is updated for wallet and the previously active wallet in savedWallets

Diff Detail

Repository
rABC Bitcoin ABC
Branch
streamline-wallet-structure
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21132
Build 41916: Build Diffcashtab-tests
Build 41915: arc lint + arc unit

Event Timeline

Added additional logging to confirm when wallet update is completed

Remove unrelated line break change

This revision is now accepted and ready to land.Nov 25 2022, 10:45