This commit is contained in:
Mayukha Vadari
2026-06-29 21:46:21 -04:00
parent 7023e7af5d
commit 0e4a96f0a0
2 changed files with 7 additions and 8 deletions

View File

@@ -948,8 +948,7 @@ checkCreateMPT(
beast::Journal j)
{
XRPL_ASSERT(
reserveCtx.accountID == holder,
"xrpl::checkCreateMPTWithReserve : reserve context matches holder");
reserveCtx.accountID == holder, "xrpl::checkCreateMPT : reserve context matches holder");
if (mptIssue.getIssuer() == holder)
return tesSUCCESS;

View File

@@ -274,7 +274,7 @@ public:
// Not applicable for payment
static TER
checkCreateMPT(ApplyView&, DebtDirection)
checkCreateMPTForStep(ApplyView&, DebtDirection)
{
return tesSUCCESS;
}
@@ -322,7 +322,7 @@ public:
// Can be created in rev or fwd (if limiting step) direction.
TER
checkCreateMPT(ApplyView& view, DebtDirection srcDebtDir);
checkCreateMPTForStep(ApplyView& view, DebtDirection srcDebtDir);
};
//------------------------------------------------------------------------------
@@ -401,7 +401,7 @@ MPTEndpointOfferCrossingStep::check(StrandContext const& ctx, SLE::const_ref)
}
TER
MPTEndpointOfferCrossingStep::checkCreateMPT(ApplyView& view, xrpl::DebtDirection srcDebtDir)
MPTEndpointOfferCrossingStep::checkCreateMPTForStep(ApplyView& view, xrpl::DebtDirection srcDebtDir)
{
// TakerPays is the last step if offer crossing
if (isLast_)
@@ -418,7 +418,7 @@ MPTEndpointOfferCrossingStep::checkCreateMPT(ApplyView& view, xrpl::DebtDirectio
j_);
!isTesSuccess(err))
{
JLOG(j_.trace()) << "MPTEndpointStep::checkCreateMPT: failed create MPT";
JLOG(j_.trace()) << "MPTEndpointStep::checkCreateMPTForStep: failed create MPT";
resetCache(srcDebtDir);
return err;
}
@@ -498,7 +498,7 @@ MPTEndpointStep<TDerived>::revImp(
return {beast::kZero, beast::kZero};
}
if (auto const err = static_cast<TDerived*>(this)->checkCreateMPT(sb, srcDebtDir);
if (auto const err = static_cast<TDerived*>(this)->checkCreateMPTForStep(sb, srcDebtDir);
!isTesSuccess(err))
return {beast::kZero, beast::kZero};
@@ -629,7 +629,7 @@ MPTEndpointStep<TDerived>::fwdImp(
return {beast::kZero, beast::kZero};
}
if (auto const err = static_cast<TDerived*>(this)->checkCreateMPT(sb, srcDebtDir);
if (auto const err = static_cast<TDerived*>(this)->checkCreateMPTForStep(sb, srcDebtDir);
!isTesSuccess(err))
return {beast::kZero, beast::kZero};