From b2e5e60df286fa18bbeaddb0fc130312d613eaed Mon Sep 17 00:00:00 2001 From: Nikhil <1028334+nikhilsaraf@users.noreply.github.com> Date: Thu, 26 Jul 2018 08:59:40 -0700 Subject: [PATCH] allow multiple source accounts for payment operations --- microstellar.go | 1 + 1 file changed, 1 insertion(+) diff --git a/microstellar.go b/microstellar.go index 0eb38f7..f49ee86 100644 --- a/microstellar.go +++ b/microstellar.go @@ -415,6 +415,7 @@ func (ms *MicroStellar) Pay(sourceAddressOrSeed string, targetAddress string, am } } + paymentMuts = append(paymentMuts, build.SourceAccount{AddressOrSeed: sourceAddressOrSeed}) tx.Build(sourceAccount(sourceAddressOrSeed), build.Payment(paymentMuts...)) return ms.signAndSubmit(tx, sourceAddressOrSeed) }