disable paging for cosmwasm

This commit is contained in:
Pham Tu 2024-02-01 10:00:01 +07:00
parent 8d25fd702c
commit 79ecf5d194
No known key found for this signature in database
GPG Key ID: 7460FD99133ADA1C
2 changed files with 5 additions and 7 deletions

View File

@ -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;

View File

@ -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();