From 3e173929833899dd44b27af198ff1a2f6bf8cdb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danilo=20Arau=CC=81jo=20Silva?= Date: Thu, 21 Sep 2023 00:28:41 +0200 Subject: [PATCH] Fixing get balance method. --- src/connectors/kujira/kujira.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/connectors/kujira/kujira.ts b/src/connectors/kujira/kujira.ts index 1745302aa0..cc1774a99a 100644 --- a/src/connectors/kujira/kujira.ts +++ b/src/connectors/kujira/kujira.ts @@ -1305,9 +1305,9 @@ export class Kujira { let partialResponse: JsonObject; while ( - (!partialResponse || - partialResponse.orders.length >= - KujiraConfig.config.orders.open.paginationLimit) && + partialResponse && + partialResponse.orders.length >= + KujiraConfig.config.orders.open.paginationLimit && response.orders.length <= KujiraConfig.config.orders.open.limit ) { partialResponse = await this.kujiraQueryClientWasmQueryContractSmart(