mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Increase searchTx limit to 50
This commit is contained in:
parent
69c57c9758
commit
357fc3577e
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user