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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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