From b361c96f5cda04c242141727371f806fc1c1cebb Mon Sep 17 00:00:00 2001 From: 0xMasayoshi <0xMasayoshi@protonmail.com> Date: Fri, 13 Sep 2024 03:04:19 +0800 Subject: [PATCH] fix: build --- .../aptos/(common)/lib/common/use-token-balances.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-token-balances.ts b/apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-token-balances.ts index c5534567d8..8633a63d8c 100644 --- a/apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-token-balances.ts +++ b/apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-token-balances.ts @@ -1,6 +1,9 @@ import { useQuery } from '@tanstack/react-query' import { isPromiseFulfilled } from 'sushi' -import { SupportedNetwork } from '~aptos/(common)/config/chains' +import { + SupportedNetwork, + networkNameToNetwork, +} from '~aptos/(common)/config/chains' import { AptosSDK } from './aptos-sdk' import { useNetwork } from './use-network' @@ -15,7 +18,7 @@ export const tokenBalanceQueryFn = async ({ currency, network, }: TokenBalanceQueryFn) => { - const aptos = AptosSDK.onNetwork(network) + const aptos = AptosSDK.onNetwork(networkNameToNetwork(network)) try { const fungibleAssetBalances = await aptos.getCurrentFungibleAssetBalances({