From 357fc3577e93ced9b656527996f003272d17458a Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 10 Feb 2020 17:59:32 +0100 Subject: [PATCH] Increase searchTx limit to 50 --- packages/bcp/src/cosmwasmconnection.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/bcp/src/cosmwasmconnection.ts b/packages/bcp/src/cosmwasmconnection.ts index bb52c528b0..5640c72f5b 100644 --- a/packages/bcp/src/cosmwasmconnection.ts +++ b/packages/bcp/src/cosmwasmconnection.ts @@ -295,8 +295,10 @@ export class CosmWasmConnection implements BlockchainConnection { ): Promise | FailedTransaction)[]> { const queryString = buildQueryString(query); const chainId = this.chainId(); - const { txs: responses } = await this.restClient.txs(queryString); - return Promise.all(responses.map(response => this.parseAndPopulateTxResponse(response, chainId))); + // TODO: we need pagination support + const response = await this.restClient.txs(queryString + "&limit=50"); + const { txs } = response; + return Promise.all(txs.map(tx => this.parseAndPopulateTxResponse(tx, chainId))); } public listenTx(