From 6187e31f086cbeb73eb7807552291ad9254b1cf1 Mon Sep 17 00:00:00 2001 From: gregfromstl Date: Wed, 29 Jan 2025 11:02:43 -0800 Subject: [PATCH 1/2] fix(wagmi-adapter): fallback to user specified smart account chain --- packages/wagmi-adapter/src/connector.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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, From 45d3c76c79af8aea13b628d209c98e09f6ca258e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 19:03:58 +0000 Subject: [PATCH 2/2] build(deps): bump @sentry/nextjs Bumps the npm_and_yarn group with 1 update in the /apps/dashboard directory: [@sentry/nextjs](https://github.com/getsentry/sentry-javascript). Updates `@sentry/nextjs` from 8.45.1 to 8.49.0 - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/8.49.0/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-javascript/compare/8.45.1...8.49.0) --- updated-dependencies: - dependency-name: "@sentry/nextjs" dependency-type: direct:production dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] --- apps/dashboard/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",