Page MenuHomePhabricator

[ecash-herald] Prep OP_RETURN strings for tg parsing depending on content
ClosedPublic

Authored by bytesofman on Jun 9 2023, 16:35.

Details

Summary

T2972

See D14030. This change is needed to support more complicated parsing of OP_RETURN msgs, i.e. if some of the data could be used to generate a link in the tg msg.

Currently, ecash-herald calls prepareStringForTelegramHTML on the whole msg for OP_RETURN txs. However, we want this to depend on the msg contents.

At this point the app doesn't support any complicated OP_RETURN pushes so it's more or less a non-change. D14030 shows how this can be used to create better msgs for OP_RETURN txs.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable