diff --git a/core/src/main/java/bisq/core/trade/Contract.java b/core/src/main/java/bisq/core/trade/Contract.java index 18b083e2ce6..d32b1c83722 100644 --- a/core/src/main/java/bisq/core/trade/Contract.java +++ b/core/src/main/java/bisq/core/trade/Contract.java @@ -40,6 +40,7 @@ import org.apache.commons.lang3.StringUtils; +import java.util.Objects; import java.util.Optional; import lombok.EqualsAndHashCode; @@ -296,7 +297,8 @@ public byte[] getHashOfPeersPaymentAccountPayload(PubKeyRing myPubKeyRing) { } public String getPaymentMethodId() { - return makerPaymentMethodId; + // Either makerPaymentMethodId is set or available in makerPaymentAccountPayload + return makerPaymentMethodId != null ? makerPaymentMethodId : Objects.requireNonNull(makerPaymentAccountPayload).getPaymentMethodId(); } public Coin getTradeAmount() {