Skip to content

Commit cc3fbba

Browse files
authored
Fix: Fallback insight owned tokens request to mainnet (#7375)
1 parent 381e423 commit cc3fbba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/thirdweb/src/insight/get-tokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export async function getOwnedTokens(args: {
5151

5252
const defaultQueryOptions: GetV1TokensData["query"] = {
5353
owner_address: ownerAddress,
54-
chain_id: chains.map((chain) => chain.id),
54+
chain_id: chains.length > 0 ? chains.map((chain) => chain.id) : [1],
5555
include_native: "true",
5656
include_spam: "false",
5757
metadata: "true",

0 commit comments

Comments
 (0)