HomePhabricator

[Cashtab] Better error handling for rendering txs

Description

[Cashtab] Better error handling for rendering txs

Summary:
Now that we are in in-node chronik, tokenEntries will always be an array. However, some users got this error when Cashtab migrated to in-node chronik, since parsedTxHistory loaded from storage does not have tokenEntries (coming from nng chronik).

Add better validation to handle this migration case.

Test Plan: npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on Mar 24 2024, 12:57
bytesofmanPushed on Mar 25 2024, 01:37
Reviewer
Restricted Project
Differential Revision
D15772: [Cashtab] Better error handling for rendering txs
Parents
rABC7b7eefc53cae: [Automated] Update seeds
Branches
Unknown
Tags
Unknown