This commit is contained in:
Mayukha Vadari
2026-07-10 11:53:32 -04:00
parent 55cab65ab2
commit 89fc6b870c

View File

@@ -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));