mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Merge pull request #6072 from jmacxx/5396_privacy_enhancement
[1.8.3 fix] Get payment method ID from offerPayload pt.II
This commit is contained in:
commit
07f0e70731
1 changed files with 3 additions and 3 deletions
|
@ -151,12 +151,12 @@ public final class Contract implements NetworkPayload {
|
||||||
this.makerPaymentMethodId = makerPaymentMethodId;
|
this.makerPaymentMethodId = makerPaymentMethodId;
|
||||||
this.takerPaymentMethodId = takerPaymentMethodId;
|
this.takerPaymentMethodId = takerPaymentMethodId;
|
||||||
|
|
||||||
// Either makerPaymentAccountPayload is set or makerPaymentMethodId
|
// Either makerPaymentMethodId is set, or obtained from offerPayload.
|
||||||
if (makerPaymentMethodId == null) {
|
if (makerPaymentMethodId == null) {
|
||||||
makerPaymentMethodId = checkNotNull(makerPaymentAccountPayload).getPaymentMethodId();
|
makerPaymentMethodId = checkNotNull(offerPayload).getPaymentMethodId();
|
||||||
}
|
}
|
||||||
if (takerPaymentMethodId == null) {
|
if (takerPaymentMethodId == null) {
|
||||||
takerPaymentMethodId = checkNotNull(takerPaymentAccountPayload).getPaymentMethodId();
|
takerPaymentMethodId = checkNotNull(offerPayload).getPaymentMethodId();
|
||||||
}
|
}
|
||||||
checkNotNull(makerPaymentMethodId);
|
checkNotNull(makerPaymentMethodId);
|
||||||
checkNotNull(takerPaymentMethodId);
|
checkNotNull(takerPaymentMethodId);
|
||||||
|
|
Loading…
Add table
Reference in a new issue