Skip to content

Commit

Permalink
Address reviewer's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Oct 22, 2024
1 parent 0905e37 commit 9d84f3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrpld/ledger/View.h
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ transferXRP(
STAmount const& amount,
beast::Journal j);

/** Check if the account requires authorization.
/** Check if the account lacks required authorization.
* Return tecNO_AUTH or tecNO_LINE if it does
* and tesSUCCESS otherwise.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/xrpld/ledger/detail/View.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1989,11 +1989,16 @@ rippleCredit(
return std::visit(
[&]<ValidIssueType TIss>(TIss const& issue) {
if constexpr (std::is_same_v<TIss, Issue>)
{
return rippleCreditIOU(
view, uSenderID, uReceiverID, saAmount, bCheckIssuer, j);
}
else
{
assert(!bCheckIssuer);
return rippleCreditMPT(
view, uSenderID, uReceiverID, saAmount, j);
}
},
saAmount.asset().value());
}
Expand Down

0 comments on commit 9d84f3b

Please sign in to comment.