From 5ec650157d809b2cd211aedbb16f09cd940857b2 Mon Sep 17 00:00:00 2001 From: Gregory Tsipenyuk Date: Mon, 17 Jun 2024 14:41:31 -0400 Subject: [PATCH] Fix interaction of AMM trustline deletion and MPT. --- src/ripple/app/misc/impl/AMMUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ripple/app/misc/impl/AMMUtils.cpp b/src/ripple/app/misc/impl/AMMUtils.cpp index eb077944327..2a3bb4fe34a 100644 --- a/src/ripple/app/misc/impl/AMMUtils.cpp +++ b/src/ripple/app/misc/impl/AMMUtils.cpp @@ -213,8 +213,8 @@ deleteAMMTrustLines( std::shared_ptr& sleItem) -> std::pair { // Skip AMM and MPT if (nodeType == LedgerEntryType::ltAMM || - nodeType != LedgerEntryType::ltMPTOKEN || - nodeType != LedgerEntryType::ltMPTOKEN_ISSUANCE) + nodeType == LedgerEntryType::ltMPTOKEN || + nodeType == LedgerEntryType::ltMPTOKEN_ISSUANCE) return {tesSUCCESS, SkipEntry::Yes}; // Should only have the trustlines if (nodeType != LedgerEntryType::ltRIPPLE_STATE)