From d620c7e43adc0c8c65bb68e86fd3ff5500f689b5 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 11 Jan 2024 16:04:59 +0800 Subject: [PATCH] remove pagination since the api does not support --- src/modules/[chain]/cosmwasm/WasmClient.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/[chain]/cosmwasm/WasmClient.ts b/src/modules/[chain]/cosmwasm/WasmClient.ts index cf0ecabc..c3f974f1 100644 --- a/src/modules/[chain]/cosmwasm/WasmClient.ts +++ b/src/modules/[chain]/cosmwasm/WasmClient.ts @@ -66,9 +66,9 @@ export interface WasmRequestRegistry extends AbstractRegistry { export class WasmRestClient extends BaseRestClient { getWasmCodeList(pr?: PageRequest) { - if(!pr) pr = new PageRequest() - const query = `?${pr.toQueryString()}` - return this.request(this.registry.cosmwasm_code, {}, query); + // if(!pr) pr = new PageRequest() + // const query = `?${pr.toQueryString()}` + return this.request(this.registry.cosmwasm_code, {}, /*query*/); } getWasmCodeById(code_id: string) { return this.request(this.registry.cosmwasm_code, { code_id }); // `code_id` is a param in above url