diff --git a/src/xrpld/ledger/View.h b/src/xrpld/ledger/View.h index 80d41490912..74027752486 100644 --- a/src/xrpld/ledger/View.h +++ b/src/xrpld/ledger/View.h @@ -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. */ diff --git a/src/xrpld/ledger/detail/View.cpp b/src/xrpld/ledger/detail/View.cpp index fd687953fe4..ae4eb095017 100644 --- a/src/xrpld/ledger/detail/View.cpp +++ b/src/xrpld/ledger/detail/View.cpp @@ -1989,11 +1989,16 @@ rippleCredit( return std::visit( [&](TIss const& issue) { if constexpr (std::is_same_v) + { return rippleCreditIOU( view, uSenderID, uReceiverID, saAmount, bCheckIssuer, j); + } else + { + assert(!bCheckIssuer); return rippleCreditMPT( view, uSenderID, uReceiverID, saAmount, j); + } }, saAmount.asset().value()); }