Skip to content

Commit

Permalink
var naming
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnxie999 committed Oct 11, 2024
1 parent 09dc565 commit 9e8ab5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xrpld/ledger/detail/View.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1720,12 +1720,12 @@ requireAuth(
AccountID const& account)
{
auto const mptID = keylet::mptIssuance(mptIssue.getMptID());
auto const sleIssuance = view.read(mptID);
auto const issuanceSle = view.read(mptID);

if (!sleIssuance)
if (!issuanceSle)
return tecOBJECT_NOT_FOUND;

auto const mptIssuer = sleIssuance->getAccountID(sfIssuer);
auto const mptIssuer = issuanceSle->getAccountID(sfIssuer);

// issuer is always "authorized"
if (mptIssuer == account)
Expand All @@ -1739,7 +1739,7 @@ requireAuth(
return tecNO_AUTH;

// mptoken must be authorized if issuance enabled requireAuth
if (sleIssuance->getFieldU32(sfFlags) & lsfMPTRequireAuth &&
if (issuanceSle->getFieldU32(sfFlags) & lsfMPTRequireAuth &&
!(tokSle->getFlags() & lsfMPTAuthorized))
return tecNO_AUTH;

Expand Down

0 comments on commit 9e8ab5f

Please sign in to comment.