clang-format and cspell fixes

This commit is contained in:
Vladislav Vysokikh
2026-02-17 10:50:47 +00:00
parent 4a06a0d584
commit 080ad74a23
2 changed files with 4 additions and 7 deletions

View File

@@ -1814,18 +1814,15 @@ rippleCreditIOU(
auto const ownerCount = sleReceiver->getFieldU32(sfOwnerCount);
// Trust lines use "owner count < 2" reserve exception
XRPAmount const reserve = (ownerCount < 2)
? XRPAmount(beast::zero)
: view.fees().accountReserve(ownerCount + 1);
XRPAmount const reserve =
(ownerCount < 2) ? XRPAmount(beast::zero) : view.fees().accountReserve(ownerCount + 1);
if (sleReceiver->getFieldAmount(sfBalance) < reserve)
return tecINSUFFICIENT_RESERVE;
adjustOwnerCount(view, sleReceiver, 1, j);
sleRippleState->setFieldU32(
sfFlags,
uFlags | (bSenderHigh ? lsfLowReserve : lsfHighReserve));
sleRippleState->setFieldU32(sfFlags, uFlags | (bSenderHigh ? lsfLowReserve : lsfHighReserve));
}
if (bSenderHigh)

View File

@@ -625,7 +625,7 @@ class TrustAndBalance_test : public beast::unit_test::suite
// rippleCreditIOU returns tecINSUFFICIENT_RESERVE here since
// there is not enough balance for the reserve requirement on
// 3rd trustline. Unfortunately payment engine somehow does not
// propogate this error
// propagate this error
env(check::cash(ed, checkId, USD(25)));
env.close();