Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMasayoshi committed Sep 12, 2024
1 parent 507e02d commit b361c96
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -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({
Expand Down

0 comments on commit b361c96

Please sign in to comment.