HomePhabricator

[ecash-herald] Handle error if getTokenInfoMap is provided with a non-tokenId…

Description

[ecash-herald] Handle error if getTokenInfoMap is provided with a non-tokenId txid

Summary:
T2972

This console.assert ended up throwing an error if the result is such that txDetails.slpTxData is undefined.

Refactor to catch error if unable to get genesisInfo.

Test Plan:
npm test
npm run sendMsgByBlock 798428 and msg sends, expected error msg is logged

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
bytesofmanAuthored on Jun 29 2023, 23:40
bytesofmanPushed on Jun 30 2023, 16:35
Reviewer
Restricted Project
Differential Revision
D14160: [ecash-herald] Handle error if getTokenInfoMap is provided with a non-tokenId txid
Parents
rABC5dc3be44f638: [ecash-herald] Patch bug in determining tokenId from SWaP txs
Branches
Unknown
Tags
Unknown