Skip to content

Commit 49479d4

Browse files
[Dashboard] Replace serverThirdwebClient with getUserThirdwebClient (#6990)
1 parent 3d7c2d4 commit 49479d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/_utils/getContractFromParams.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { serverThirdwebClient } from "@/constants/thirdweb-client.server";
21
import { mapV4ChainToV5Chain } from "contexts/map-chains";
32
import { getAddress, getContract, isAddress } from "thirdweb";
43
import { fetchChainWithLocalOverrides } from "../../../../../../../utils/fetchChainWithLocalOverrides";
4+
import { getUserThirdwebClient } from "../../../../../api/lib/getAuthToken";
55

66
export async function getContractPageParamsInfo(params: {
77
contractAddress: string;
@@ -22,7 +22,7 @@ export async function getContractPageParamsInfo(params: {
2222
// eslint-disable-next-line no-restricted-syntax
2323
chain: mapV4ChainToV5Chain(chainMetadata),
2424
// if we have the auth token pass it into the client
25-
client: serverThirdwebClient,
25+
client: await getUserThirdwebClient(),
2626
});
2727

2828
return {

0 commit comments

Comments
 (0)