Increase searchTx limit to 50

This commit is contained in:
Simon Warta
2020-02-10 18:10:03 +01:00
parent 69c57c9758
commit 357fc3577e
+4 -2
View File
@@ -295,8 +295,10 @@ export class CosmWasmConnection implements BlockchainConnection {
): Promise<readonly (ConfirmedTransaction<UnsignedTransaction> | 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(