respond to copilot comments

This commit is contained in:
Mayukha Vadari
2026-04-08 16:42:53 -04:00
parent 9c9281e5d9
commit 683ff84ee0
2 changed files with 3 additions and 4 deletions

View File

@@ -60,8 +60,7 @@ public:
{
}
/** Create an AccountRoot backed by a brand-new SLE
* (not yet inserted into the view).
/** Create an AccountRoot backed by a brand-new SLE.
*/
[[nodiscard]] static AccountRoot
makeNew(

View File

@@ -1950,11 +1950,11 @@ adjustOwnerCount(
std::int32_t amount,
beast::Journal j)
{
if (!sle)
return;
// This function is only used for LoanBrokers, so assert that
// AccountRoot should use WAccountRoot.adjustOwnerCount instead
XRPL_ASSERT(sle->getType() == ltLOAN_BROKER, "xrpl::adjustOwnerCount : sle is loan broker");
if (!sle)
return;
XRPL_ASSERT(amount, "xrpl::adjustOwnerCount : nonzero amount input");
std::uint32_t const current{sle->getFieldU32(sfOwnerCount)};
AccountID const id = (*sle)[sfAccount];