diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index b60e5322f3f..b130c9f360e 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -46,7 +46,7 @@ "@radix-ui/react-slot": "^1.1.1", "@radix-ui/react-switch": "^1.1.2", "@radix-ui/react-tooltip": "1.1.5", - "@sentry/nextjs": "8.45.1", + "@sentry/nextjs": "8.49.0", "@shazow/whatsabi": "^0.18.0", "@tanstack/react-query": "5.62.16", "@tanstack/react-table": "^8.20.6", diff --git a/packages/wagmi-adapter/src/connector.ts b/packages/wagmi-adapter/src/connector.ts index c3d403bf056..182c828eec1 100644 --- a/packages/wagmi-adapter/src/connector.ts +++ b/packages/wagmi-adapter/src/connector.ts @@ -95,9 +95,10 @@ export function inAppWalletConnector( const lastChainId = await config.storage?.getItem("tw.lastChainId"); if (params?.isReconnecting) { const { autoConnect } = await import("thirdweb/wallets"); + const chainId = lastChainId || args.smartAccount?.chain?.id || 1; await autoConnect({ client, - chain: defineChain(lastChainId || 1), + chain: defineChain(chainId), wallets: [wallet], }); @@ -108,7 +109,7 @@ export function inAppWalletConnector( return { accounts: [getAddress(account.address)], - chainId: lastChainId || 1, + chainId: chainId, }; } const inAppOptions = params && "strategy" in params ? params : undefined; @@ -117,7 +118,12 @@ export function inAppWalletConnector( "Missing strategy prop, pass it to connect() when connecting to this connector", ); } - const chain = defineChain(inAppOptions?.chainId || lastChainId || 1); + const chain = defineChain( + inAppOptions?.chainId || + lastChainId || + args.smartAccount?.chain?.id || + 1, + ); const decoratedOptions = { ...inAppOptions, client,