File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export default async function AccountLayout(props: {
4646 />
4747 { props . children }
4848 </ div >
49- < TWAutoConnect />
49+ < TWAutoConnect client = { client } />
5050 < AppFooter />
5151 </ div >
5252 ) ;
Original file line number Diff line number Diff line change 11"use client" ;
2- import { getClientThirdwebClient } from "@/constants/ thirdweb-client.client " ;
2+ import type { ThirdwebClient } from "thirdweb" ;
33import { AutoConnect } from "thirdweb/react" ;
44import type { SmartWalletOptions } from "thirdweb/wallets" ;
55
6- const client = getClientThirdwebClient ( ) ;
7-
86export function TWAutoConnect ( props : {
97 accountAbstraction ?: SmartWalletOptions ;
8+ client : ThirdwebClient ;
109} ) {
1110 return (
1211 < AutoConnect
13- client = { client }
12+ client = { props . client }
1413 accountAbstraction = { props . accountAbstraction }
1514 />
1615 ) ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
1818import { TWAutoConnect } from "./components/autoconnect" ;
1919
2020const queryClient = new QueryClient ( ) ;
21+ const thirdwebClient = getClientThirdwebClient ( ) ;
2122
2223export function AppRouterProviders ( props : { children : React . ReactNode } ) {
2324 return (
@@ -26,7 +27,7 @@ export function AppRouterProviders(props: { children: React.ReactNode }) {
2627 < SyncChainStores />
2728 < ThirdwebProvider >
2829 < SyncChainDefinitionsToConnectionManager />
29- < TWAutoConnect />
30+ < TWAutoConnect client = { thirdwebClient } />
3031 < ThemeProvider
3132 attribute = "class"
3233 disableTransitionOnChange
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { Toaster } from "sonner";
88import { ThirdwebProvider , useActiveAccount } from "thirdweb/react" ;
99import { TWAutoConnect } from "../(app)/components/autoconnect" ;
1010import { NebulaConnectWallet } from "./(app)/components/NebulaConnectButton" ;
11+ import { nebulaAppThirdwebClient } from "./(app)/utils/nebulaThirdwebClient" ;
1112import { nebulaAAOptions } from "./login/account-abstraction" ;
1213
1314const queryClient = new QueryClient ( ) ;
@@ -16,7 +17,10 @@ export function NebulaProviders(props: { children: React.ReactNode }) {
1617 return (
1718 < QueryClientProvider client = { queryClient } >
1819 < ThirdwebProvider >
19- < TWAutoConnect accountAbstraction = { nebulaAAOptions } />
20+ < TWAutoConnect
21+ accountAbstraction = { nebulaAAOptions }
22+ client = { nebulaAppThirdwebClient }
23+ />
2024 < ThemeProvider
2125 attribute = "class"
2226 disableTransitionOnChange
You can’t perform that action at this time.
0 commit comments