From 5439264bdb001e3434eda446d7ae62bbd49c9e76 Mon Sep 17 00:00:00 2001 From: Gregory Tsipenyuk Date: Mon, 13 Apr 2026 13:39:20 -0400 Subject: [PATCH] Fix MPTInvariant refactoring --- src/libxrpl/tx/invariants/MPTInvariant.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libxrpl/tx/invariants/MPTInvariant.cpp b/src/libxrpl/tx/invariants/MPTInvariant.cpp index 5be2d0b0b4..067c4ec0d5 100644 --- a/src/libxrpl/tx/invariants/MPTInvariant.cpp +++ b/src/libxrpl/tx/invariants/MPTInvariant.cpp @@ -416,7 +416,8 @@ ValidMPTTransfer::finalize( // DEX transactions (AMM[Create,Deposit,Withdraw], cross-currency payments, offer creates) are // subject to the MPTCanTrade flag in addition to the standard transfer rules. // A payment is only DEX if it is a cross-currency payment. - auto const isDEX = [&tx, &txnType] { + auto const isDEX = [&tx] { + auto const txnType = tx.getTxnType(); if (txnType == ttPAYMENT) { // A payment is cross-currency (and thus DEX) only if SendMax is present