diff --git a/src/libxrpl/tx/transactors/Sponsor/SponsorshipSet.cpp b/src/libxrpl/tx/transactors/Sponsor/SponsorshipSet.cpp index ebda6f0b8e..ee479a20fc 100644 --- a/src/libxrpl/tx/transactors/Sponsor/SponsorshipSet.cpp +++ b/src/libxrpl/tx/transactors/Sponsor/SponsorshipSet.cpp @@ -287,6 +287,7 @@ SponsorshipSet::doApply() return tecDIR_FULL; // LCOV_EXCL_LINE (*newSle)[sfSponseeNode] = *sponseePage; + // NOLINTNEXTLINE(readability-suspicious-call-argument) adjustOwnerCount(view(), sponsorAccSle, reserveSponsorAccSle, 1, ctx_.journal); addSponsorToLedgerEntry(newSle, reserveSponsorAccSle); diff --git a/src/libxrpl/tx/transactors/Sponsor/SponsorshipTransfer.cpp b/src/libxrpl/tx/transactors/Sponsor/SponsorshipTransfer.cpp index 92b72e1645..bd971bb95e 100644 --- a/src/libxrpl/tx/transactors/Sponsor/SponsorshipTransfer.cpp +++ b/src/libxrpl/tx/transactors/Sponsor/SponsorshipTransfer.cpp @@ -292,6 +292,7 @@ SponsorshipTransfer::preclaim(PreclaimContext const& ctx) } // check new sponsor have sufficient balance + // NOLINTNEXTLINE(readability-suspicious-call-argument) if (auto const ter = checkInsufficientReserve( ctx.view, ctx.tx, @@ -343,6 +344,7 @@ SponsorshipTransfer::preclaim(PreclaimContext const& ctx) // In the case of removing an account sponsor, accSle should have no sfSponsor set // (AccountReserve = 0). However, by setting accountCountDelta = 1 here, we are able to // calculate the actual required Account Reserve. + // NOLINTNEXTLINE(readability-suspicious-call-argument) if (auto const ter = checkInsufficientReserve( ctx.view, ctx.tx, diff --git a/src/test/app/Sponsor_test.cpp b/src/test/app/Sponsor_test.cpp index cccbb71ef2..a0af9d1757 100644 --- a/src/test/app/Sponsor_test.cpp +++ b/src/test/app/Sponsor_test.cpp @@ -2535,7 +2535,8 @@ public: } } - BEAST_EXPECT(sponsoringOwnerCount(env, sponsor) == maxDeletableAMMTrustLines * 2 + 10); + BEAST_EXPECT( + sponsoringOwnerCount(env, sponsor) == ((maxDeletableAMMTrustLines * 2) + 10)); // The trustlines are partially deleted. amm.withdrawAll(gw);