File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/thirdweb/src/react/core/hooks Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ import type { ThirdwebClient } from "../../../client/client.js";
10
10
import { getOwnedTokens } from "../../../insight/get-tokens.js" ;
11
11
import { toTokens } from "../../../utils/units.js" ;
12
12
import type { Wallet } from "../../../wallets/interfaces/wallet.js" ;
13
- import { getWalletBalance } from "../../../wallets/utils/getWalletBalance.js" ;
13
+ import {
14
+ type GetWalletBalanceResult ,
15
+ getWalletBalance ,
16
+ } from "../../../wallets/utils/getWalletBalance.js" ;
14
17
import type { PaymentMethod } from "../machines/paymentMachine.js" ;
15
18
import { useActiveWallet } from "./wallets/useActiveWallet.js" ;
16
19
@@ -81,7 +84,7 @@ export function usePaymentMethods(options: {
81
84
const limit = 500 ;
82
85
83
86
while ( true ) {
84
- let batch ;
87
+ let batch : GetWalletBalanceResult [ ] ;
85
88
try {
86
89
batch = await getOwnedTokens ( {
87
90
chains : insightEnabledChains . map ( ( c ) => getCachedChain ( c . chainId ) ) ,
You can’t perform that action at this time.
0 commit comments