mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-12 23:12:23 +00:00
respond to copilot comments
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user