From 30826a0ed6a6b73d26989773332f5c3c32a47310 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 11 Jan 2024 16:09:43 +0800 Subject: [PATCH] remove pagination --- src/modules/[chain]/cosmwasm/WasmClient.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/[chain]/cosmwasm/WasmClient.ts b/src/modules/[chain]/cosmwasm/WasmClient.ts index c3f974f1..75597557 100644 --- a/src/modules/[chain]/cosmwasm/WasmClient.ts +++ b/src/modules/[chain]/cosmwasm/WasmClient.ts @@ -74,9 +74,9 @@ export interface WasmRequestRegistry extends AbstractRegistry { return this.request(this.registry.cosmwasm_code, { code_id }); // `code_id` is a param in above url } getWasmCodeContracts(code_id: string, page?: PageRequest) { - if(!page) page = new PageRequest() - const query = `?${page.toQueryString()}` - return this.request(this.registry.cosmwasm_code_id_contracts, { code_id }, query); + // if(!page) page = new PageRequest() + // const query = `?${page.toQueryString()}` + return this.request(this.registry.cosmwasm_code_id_contracts, { code_id }); } getWasmParams() { return this.request(this.registry.cosmwasm_param, {}); @@ -85,9 +85,9 @@ export interface WasmRequestRegistry extends AbstractRegistry { return this.request(this.registry.cosmwasm_contract_address, { address }); } getWasmContractsByCreator(creator_address: string, page?: PageRequest) { - if(!page) page = new PageRequest() - const query = `?${page.toQueryString()}` - return this.request(this.registry.cosmwasm_wasm_contracts_creator, { creator_address }, query); + // if(!page) page = new PageRequest() + // const query = `?${page.toQueryString()}` + return this.request(this.registry.cosmwasm_wasm_contracts_creator, { creator_address }); } getWasmContractHistory(address: string) { return this.request(this.registry.cosmwasm_contract_address_history, {