Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add comments.
  • Loading branch information
tolikzinovyev committed Nov 8, 2021
commit 2d47eb81899d884059ab9ee9093ac19d18c5790b
4 changes: 4 additions & 0 deletions accounting/accounting.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ func GetTransactionParticipants(stxnad *transactions.SignedTxnWithAD, includeInn
switch txn.Type {
case protocol.PaymentTx:
add(txn.Receiver)
// Close address is optional.
if !txn.CloseRemainderTo.IsZero() {
add(txn.CloseRemainderTo)
}
case protocol.AssetTransferTx:
// If asset sender is non-zero, it is a clawback transaction. Otherwise,
// the transaction sender address is used.
if !txn.AssetSender.IsZero() {
add(txn.AssetSender)
}
add(txn.AssetReceiver)
// Asset close address is optional.
if !txn.AssetCloseTo.IsZero() {
add(txn.AssetCloseTo)
}
Expand Down