Merge pull request #6069 from jmacxx/5396_privacy_enhancement

[1.8.3 fix] Get payment method ID from offerPayload
This commit is contained in:
Christoph Atteneder 2022-02-21 20:22:59 +01:00 committed by GitHub
commit d12a13b1a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,8 +298,8 @@ public final class Contract implements NetworkPayload {
}
public String getPaymentMethodId() {
// Either makerPaymentMethodId is set or available in makerPaymentAccountPayload
return makerPaymentMethodId != null ? makerPaymentMethodId : Objects.requireNonNull(makerPaymentAccountPayload).getPaymentMethodId();
// Either makerPaymentMethodId is set or available in offerPayload
return makerPaymentMethodId != null ? makerPaymentMethodId : Objects.requireNonNull(getOfferPayload()).getPaymentMethodId();
}
public Coin getTradeAmount() {