Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yinyiqian1 committed Oct 9, 2024
1 parent 627655e commit fb37fc7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/xrpld/rpc/detail/RPCHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,17 @@ getAccountObjects(
if (!dir)
{
// it's possible the user had nftoken pages but no
// directory entries
// directory entries. If there's no nftoken page, we will
// give empty array for account_objects.
if (mlimit >= limit)
jvResult[jss::account_objects] = Json::arrayValue;

// non-zero dirIndex validity was checked in the caller function;
// by this point, it should be zero.
// This function returns true regardless of nftoken page presence;
// if absent, account_objects is already set as an empty array.
// Notice we will only return false in this function when entryIndex
// can not be found, indicating an invalid marker error.
return true;
}

Expand Down

0 comments on commit fb37fc7

Please sign in to comment.