disable paging for cosmwasm
This commit is contained in:
parent
8d25fd702c
commit
79ecf5d194
@ -120,9 +120,7 @@ export class WasmRestClient extends BaseRestClient<WasmRequestRegistry> {
|
||||
};
|
||||
}
|
||||
|
||||
if (blockchain.chainName === 'osmosis') {
|
||||
page?.setCountTotal(false);
|
||||
}
|
||||
page?.setCountTotal(false);
|
||||
|
||||
const res = await this.queryClient.extra.listCode(page);
|
||||
return res;
|
||||
|
||||
@ -107,10 +107,10 @@ export const useBaseStore = defineStore('baseStore', {
|
||||
}
|
||||
//check if the block exists in recents
|
||||
if (
|
||||
this.recents.findIndex(
|
||||
(x) =>
|
||||
toBase64(x?.blockId?.hash) === toBase64(this.latest?.blockId?.hash)
|
||||
) === -1
|
||||
this.latest?.blockId?.hash &&
|
||||
this.recents.some(
|
||||
(x) => toBase64(x.blockId.hash) === toBase64(this.latest.blockId.hash)
|
||||
)
|
||||
) {
|
||||
if (this.recents.length >= 50) {
|
||||
this.recents.shift();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user