Page MenuHomePhabricator

[ecash-herald] Patch bug in determining tokenId from SWaP txs
ClosedPublic

Authored by bytesofman on Jun 29 2023, 23:44.

Details

Summary

T2972

tokenId is only found at stackArray[3] for a signal SLP Atomic Swap, not a payment SLP Atomic Swap.

Correct code logic to accurately reflect spec.

Test Plan

npm test

npm run sendMsgByBlock 798428 and no error msg

Diff Detail

Repository
rABC Bitcoin ABC
Branch
herald-patch-swap-parse-bug
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24256
Build 48122: Build Diffecash-herald-tests
Build 48121: arc lint + arc unit

Event Timeline

PiRK requested changes to this revision.Jun 30 2023, 07:26
PiRK added a subscriber: PiRK.

It looks like there is no test covering this case.

This revision now requires changes to proceed.Jun 30 2023, 07:26

adding test case to swap app tx mocks

This revision is now accepted and ready to land.Jun 30 2023, 13:14