f u clang-tidy

This commit is contained in:
Mayukha Vadari
2026-07-01 14:42:59 -04:00
parent 241606900d
commit 0c143e340d
2 changed files with 11 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
#include <xrpl/core/ServiceRegistry.h>
#include <xrpl/ledger/helpers/AccountRootHelpers.h>
#include <xrpl/ledger/helpers/DirectoryHelpers.h>
#include <xrpl/ledger/helpers/OracleHelpers.h>
#include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/Indexes.h>
#include <xrpl/protocol/InnerObjectFormats.h>

View File

@@ -690,16 +690,22 @@ protected:
case AssetType::MPT: {
// Enough to cover initial fees
if (!env.le(keylet::account(issuer)))
{
env.fund(
baseAccountReserve(*env.current(), {.ownerCountDelta = 10}) * 10, issuer);
}
if (!env.le(keylet::account(lender)))
{
env.fund(
baseAccountReserve(*env.current(), {.ownerCountDelta = 10}) * 10,
noripple(lender));
}
if (!env.le(keylet::account(borrower)))
{
env.fund(
baseAccountReserve(*env.current(), {.ownerCountDelta = 10}) * 10,
noripple(borrower));
}
MPTTester mptt{env, issuer, kMptInitNoFund};
mptt.create({.flags = tfMPTCanClawback | tfMPTCanTransfer | tfMPTCanLock});
@@ -786,12 +792,16 @@ protected:
// Enough to cover initial fees
env.fund(baseAccountReserve(*env.current(), {.ownerCountDelta = 10}) * 10, issuer);
if (lender != issuer)
{
env.fund(
baseAccountReserve(*env.current(), {.ownerCountDelta = 10}) * 10, noripple(lender));
}
if (borrower != issuer && borrower != lender)
{
env.fund(
baseAccountReserve(*env.current(), {.ownerCountDelta = 10}) * 10,
noripple(borrower));
}
describeLoan(env, brokerParams, loanParams, assetType, issuer, lender, borrower);