Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 4a055d3

Browse files
authored
Merge pull request #1885 from OpenBazaar/brian.1877
(#1877) Add PayoutCurrency to dispute payouts
2 parents 8f13bf6 + c967177 commit 4a055d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/disputes.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,11 @@ func (n *OpenBazaarNode) CloseDispute(orderID string, buyerPercentage, vendorPer
742742
}
743743
}
744744

745+
payout.PayoutCurrency = &pb.CurrencyDefinition{
746+
Code: preferredOrder.Payment.AmountCurrency.Code,
747+
Divisibility: preferredOrder.Payment.AmountCurrency.Divisibility,
748+
}
749+
745750
d.Payout = payout
746751

747752
rc := new(pb.RicardianContract)

0 commit comments

Comments
 (0)