remove pagination since the api does not support

This commit is contained in:
liangping 2024-01-11 16:04:59 +08:00
parent 895e611c39
commit d620c7e43a

View File

@ -66,9 +66,9 @@ export interface WasmRequestRegistry extends AbstractRegistry {
export class WasmRestClient extends BaseRestClient<WasmRequestRegistry> {
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