Add limit in four additional files (#328)

Fixes #221
This commit is contained in:
Francis Mendoza
2022-11-10 05:47:13 -08:00
committed by GitHub
parent 031ad411a6
commit 997742b555
4 changed files with 4 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ doAccountChannels(Context const& context)
response[JS(account)] = ripple::to_string(accountID);
response[JS(channels)] = boost::json::value(boost::json::array_kind);
response[JS(limit)] = limit;
boost::json::array& jsonChannels = response.at(JS(channels)).as_array();
auto const addToResponse = [&](ripple::SLE&& sle) {

View File

@@ -139,6 +139,7 @@ doAccountLines(Context const& context)
response[JS(account)] = ripple::to_string(accountID);
response[JS(ledger_hash)] = ripple::strHex(lgrInfo.hash);
response[JS(ledger_index)] = lgrInfo.seq;
response[JS(limit)] = limit;
response[JS(lines)] = boost::json::value(boost::json::array_kind);
boost::json::array& jsonLines = response.at(JS(lines)).as_array();

View File

@@ -63,6 +63,7 @@ doAccountNFTs(Context const& context)
response[JS(account)] = ripple::toBase58(accountID);
response[JS(validated)] = true;
response[JS(limit)] = limit;
std::uint32_t numPages = 0;
response[JS(account_nfts)] = boost::json::value(boost::json::array_kind);

View File

@@ -100,6 +100,7 @@ doAccountOffers(Context const& context)
}
response[JS(account)] = ripple::to_string(accountID);
response[JS(limit)] = limit;
response[JS(ledger_hash)] = ripple::strHex(lgrInfo.hash);
response[JS(ledger_index)] = lgrInfo.seq;
response[JS(offers)] = boost::json::value(boost::json::array_kind);