Fix nft_sell_offers/nft_buy_offers limit and marker correctness (#342)

Fixes #335
This commit is contained in:
Alex Kremer
2022-11-02 20:20:48 +01:00
committed by GitHub
parent 9b74b3f898
commit 8cc2de5643
11 changed files with 53 additions and 45 deletions

View File

@@ -87,7 +87,7 @@ doAccountChannels(Context const& context)
response[JS(channels)] = boost::json::value(boost::json::array_kind);
boost::json::array& jsonChannels = response.at(JS(channels)).as_array();
auto const addToResponse = [&](ripple::SLE const& sle) {
auto const addToResponse = [&](ripple::SLE&& sle) {
if (sle.getType() == ripple::ltPAYCHAN &&
sle.getAccountID(ripple::sfAccount) == accountID &&
(!destAccount ||