You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (dispute.getSellerPaymentAccountPayload() == null) thrownewValidationException(dispute, "Seller's payment account payload is null in dispute opened for trade " + dispute.getTradeId());
46
-
if (!Arrays.equals(dispute.getSellerPaymentAccountPayload().getHash(), dispute.getContract().getSellerPaymentAccountPayloadHash())) thrownewValidationException(dispute, "Hash of seller's payment account payload does not match contract");
45
+
if (dispute.getSellerPaymentAccountPayload() != null) {
46
+
if (!Arrays.equals(dispute.getSellerPaymentAccountPayload().getHash(), dispute.getContract().getSellerPaymentAccountPayloadHash())) {
47
+
thrownewValidationException(dispute, "Hash of seller's payment account payload does not match contract");
48
+
}
49
+
}
47
50
if (dispute.getBuyerPaymentAccountPayload() != null) {
48
-
if (!Arrays.equals(dispute.getBuyerPaymentAccountPayload().getHash(), dispute.getContract().getBuyerPaymentAccountPayloadHash())) thrownewValidationException(dispute, "Hash of buyer's payment account payload does not match contract");
51
+
if (!Arrays.equals(dispute.getBuyerPaymentAccountPayload().getHash(), dispute.getContract().getBuyerPaymentAccountPayloadHash())) {
52
+
thrownewValidationException(dispute, "Hash of buyer's payment account payload does not match contract");
if (!isPublished(getMaker().getDepositTx()) || (!hasBuyerAsTakerWithoutDeposit() && !isPublished(getTaker().getDepositTx()))) return; // skip if deposit txs not published successfully
0 commit comments