From 89fc6b870cdf841692ff07e413c1e134a1fee336 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Fri, 10 Jul 2026 11:53:32 -0400 Subject: [PATCH] fix bug --- src/libxrpl/tx/transactors/token/TrustSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libxrpl/tx/transactors/token/TrustSet.cpp b/src/libxrpl/tx/transactors/token/TrustSet.cpp index 0107da4754..a0244702b7 100644 --- a/src/libxrpl/tx/transactors/token/TrustSet.cpp +++ b/src/libxrpl/tx/transactors/token/TrustSet.cpp @@ -329,7 +329,7 @@ TrustSet::doApply() // With any sponsor on the tx, the sponsor must cover the reserve (via balance or // prefunded budget), so the reserve check always runs. bool const freeTrustLine = !sponsorSle && (ownerCount(sle, j_) < 2); - std::uint32_t const ownerCount = ownerCount(sle, j_) < 2; + std::uint32_t const ownerCount = ownerCount(sle, j_); XRPAmount const reserveCreate( (ownerCount < 2) ? XRPAmount(beast::kZero) : view().fees().accountReserve(ownerCount + 1, 1));