Skip to content

Commit

Permalink
wapi wallet/address limit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
madMAx43v3r committed Jan 2, 2025
1 parent 9a38691 commit 9a372f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,7 @@ void WebAPI::http_request_async(std::shared_ptr<const vnx::addons::HttpRequest>
wallet->get_all_addresses(index,
[this, request_id, limit](const std::vector<addr_t>& list) {
std::vector<std::string> res;
for(uint32_t i = 0; i < limit; ++i) {
for(size_t i = 0; i < list.size() && i < limit; ++i) {
res.push_back(list[i].to_string());
}
respond(request_id, vnx::Variant(res));
Expand Down

0 comments on commit 9a372f9

Please sign in to comment.