Page MenuHomePhabricator

[Cashtab] [Simplify wallet structure p7] Patch bug in variable definition
ClosedPublic

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

Details

Summary

T2663

Depends on D12660

Remove artifact wallet state var

Test Plan

npm test

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Nov 28 2022, 23:46

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