remove pagination since the api does not support
This commit is contained in:
parent
895e611c39
commit
d620c7e43a
@ -66,9 +66,9 @@ export interface WasmRequestRegistry extends AbstractRegistry {
|
|||||||
|
|
||||||
export class WasmRestClient extends BaseRestClient<WasmRequestRegistry> {
|
export class WasmRestClient extends BaseRestClient<WasmRequestRegistry> {
|
||||||
getWasmCodeList(pr?: PageRequest) {
|
getWasmCodeList(pr?: PageRequest) {
|
||||||
if(!pr) pr = new PageRequest()
|
// if(!pr) pr = new PageRequest()
|
||||||
const query = `?${pr.toQueryString()}`
|
// const query = `?${pr.toQueryString()}`
|
||||||
return this.request(this.registry.cosmwasm_code, {}, query);
|
return this.request(this.registry.cosmwasm_code, {}, /*query*/);
|
||||||
}
|
}
|
||||||
getWasmCodeById(code_id: string) {
|
getWasmCodeById(code_id: string) {
|
||||||
return this.request(this.registry.cosmwasm_code, { code_id }); // `code_id` is a param in above url
|
return this.request(this.registry.cosmwasm_code, { code_id }); // `code_id` is a param in above url
|
||||||
|
Loading…
Reference in New Issue
Block a user