Page MenuHomePhabricator

[Cashtab] [Simplify wallet structure p8] Remove debug logging
ClosedPublic

Authored by bytesofman on Nov 28 2022, 05:21.

Details

Summary

T2663

Depends on D12661

Remove debug logging to complete wallet structure streamline

Test Plan

npm start
Inspect indexedDb to confirm active wallet matches desired pattern
Switch wallets a lot. Active wallet should always match desired pattern on load. SavedWallet should match desired pattern after active wallet is switched off again.
Try to break it by switching wallets a lot.
Confirm indexedDb wallets match desired pattern

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Nov 29 2022, 16:05

Failed tests logs:

====== CashTab Unit Tests: useBCH hook Throws error attempting to burn an eToken ID that is not within the wallet's utxo ======
Error: expect(received).toStrictEqual(expected) // deep equality

Expected: [Error: No token UTXOs for the specified token could be found.]
Received: [TypeError: Cannot destructure property 'tokenId' of 'undefined' as it is undefined.]
    at Object.<anonymous> (/work/web/cashtab/src/hooks/__tests__/useBCH.test.js:211:29)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)

Each failure log is accessible here:
CashTab Unit Tests: useBCH hook Throws error attempting to burn an eToken ID that is not within the wallet's utxo

Failed tests logs:

====== CashTab Unit Tests: useBCH hook Throws error attempting to burn an eToken ID that is not within the wallet's utxo ======
Error: expect(received).toStrictEqual(expected) // deep equality

Expected: [Error: No token UTXOs for the specified token could be found.]
Received: [TypeError: Cannot destructure property 'tokenId' of 'undefined' as it is undefined.]
    at Object.<anonymous> (/work/web/cashtab/src/hooks/__tests__/useBCH.test.js:211:29)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)

Each failure log is accessible here:
CashTab Unit Tests: useBCH hook Throws error attempting to burn an eToken ID that is not within the wallet's utxo