Page MenuHomePhabricator

[ecash-wallet] Support ALP token txs to arbitrary number of recipients with arbitrary number of tokenIds
ClosedPublic

Authored by bytesofman on Tue, Jul 7, 17:47.

Details

Summary

Allow users to send any amount of tokens to any amount of recipients

Test Plan

npm test

Diff Detail

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

Event Timeline

version bumps, tests, confirm 3 different tokens is the most that can be sent in a single tx

bytesofman published this revision for review.Tue, Jul 7, 23:31

improve test, limit functionality to send only (validation against combined actions for chained txs). we could extend later for "just do it all" actions but that is more of a general thing, parsing an action into sub-actions and executing them all sequentially

only support multitoken chained with send action only

PiRK added inline comments.
modules/ecash-wallet/src/wallet.ts
730–734 ↗(On Diff #60066)

is there a need for this specific error message, vs just letting the next error happen? Is there test coverage for the two specific errors?

This revision is now accepted and ready to land.Thu, Jul 9, 09:23
bytesofman added inline comments.
modules/ecash-wallet/src/wallet.ts
730–734 ↗(On Diff #60066)

no, it's an artifact, good catch, will take it out