From d0095484fd3167aee22f816aa4d97a135b92efb5 Mon Sep 17 00:00:00 2001 From: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com> Date: Thu, 14 Sep 2023 12:00:46 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Badd=20pagination=20for=20asset=20pa?= =?UTF-8?q?rams=20(#471)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/params/getAssetParams.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/params/getAssetParams.ts b/src/api/params/getAssetParams.ts index 3fd81b56..dbc8bf4e 100644 --- a/src/api/params/getAssetParams.ts +++ b/src/api/params/getAssetParams.ts @@ -1,12 +1,12 @@ import { getParamsQueryClient } from 'api/cosmwasm-client' import { AssetParamsBaseForAddr } from 'types/generated/mars-params/MarsParams.types' +import iterateContractQuery from 'utils/iterateContractQuery' export default async function getAssetParams(): Promise { try { const paramsQueryClient = await getParamsQueryClient() - - return paramsQueryClient.allAssetParams({}) + return iterateContractQuery(paramsQueryClient.allAssetParams) } catch (ex) { throw ex } -} +} \ No newline at end of file