fix build issues

This commit is contained in:
Mayukha Vadari
2026-06-30 13:35:53 -04:00
parent f7bb8a53bf
commit ca205ea05b
2 changed files with 4 additions and 2 deletions

View File

@@ -158,6 +158,7 @@ authorizeMPToken(
std::optional<AccountID> holderID)
{
auto& view = ctx.view;
auto const tx = ctx.tx;
auto const sleAcct = view.peek(keylet::account(account));
if (!sleAcct)
return tecINTERNAL; // LCOV_EXCL_LINE
@@ -213,7 +214,7 @@ authorizeMPToken(
if (sponsorSle || ownerCount(sleAcct, journal) >= 2)
{
if (auto const ret = checkInsufficientReserve(
view, ctx.tx, sleAcct, priorBalance, sponsorSle, 1, 0, journal);
view, tx, sleAcct, priorBalance, sponsorSle, 1, 0, journal);
!isTesSuccess(ret))
return ret;
}

View File

@@ -640,6 +640,7 @@ addEmptyHolding(
beast::Journal journal)
{
auto& view = ctx.view;
auto const tx = ctx.tx;
// Every account can hold XRP. An issuer can issue directly.
if (issue.native() || accountID == issue.getIssuer())
return tesSUCCESS;
@@ -676,7 +677,7 @@ addEmptyHolding(
// Can the account cover the trust line reserve ?
if (auto const ret =
checkInsufficientReserve(view, ctx.tx, sleDst, priorBalance, sponsorSle, 1, 0, journal);
checkInsufficientReserve(view, tx, sleDst, priorBalance, sponsorSle, 1, 0, journal);
!isTesSuccess(ret))
return tecNO_LINE_INSUF_RESERVE;