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: {
46
46
/>
47
47
{ props . children }
48
48
</ div >
49
- < TWAutoConnect />
49
+ < TWAutoConnect client = { client } />
50
50
< AppFooter />
51
51
</ div >
52
52
) ;
Original file line number Diff line number Diff line change 1
1
"use client" ;
2
- import { getClientThirdwebClient } from "@/constants/ thirdweb-client.client " ;
2
+ import type { ThirdwebClient } from "thirdweb" ;
3
3
import { AutoConnect } from "thirdweb/react" ;
4
4
import type { SmartWalletOptions } from "thirdweb/wallets" ;
5
5
6
- const client = getClientThirdwebClient ( ) ;
7
-
8
6
export function TWAutoConnect ( props : {
9
7
accountAbstraction ?: SmartWalletOptions ;
8
+ client : ThirdwebClient ;
10
9
} ) {
11
10
return (
12
11
< AutoConnect
13
- client = { client }
12
+ client = { props . client }
14
13
accountAbstraction = { props . accountAbstraction }
15
14
/>
16
15
) ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
18
18
import { TWAutoConnect } from "./components/autoconnect" ;
19
19
20
20
const queryClient = new QueryClient ( ) ;
21
+ const thirdwebClient = getClientThirdwebClient ( ) ;
21
22
22
23
export function AppRouterProviders ( props : { children : React . ReactNode } ) {
23
24
return (
@@ -26,7 +27,7 @@ export function AppRouterProviders(props: { children: React.ReactNode }) {
26
27
< SyncChainStores />
27
28
< ThirdwebProvider >
28
29
< SyncChainDefinitionsToConnectionManager />
29
- < TWAutoConnect />
30
+ < TWAutoConnect client = { thirdwebClient } />
30
31
< ThemeProvider
31
32
attribute = "class"
32
33
disableTransitionOnChange
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { Toaster } from "sonner";
8
8
import { ThirdwebProvider , useActiveAccount } from "thirdweb/react" ;
9
9
import { TWAutoConnect } from "../(app)/components/autoconnect" ;
10
10
import { NebulaConnectWallet } from "./(app)/components/NebulaConnectButton" ;
11
+ import { nebulaAppThirdwebClient } from "./(app)/utils/nebulaThirdwebClient" ;
11
12
import { nebulaAAOptions } from "./login/account-abstraction" ;
12
13
13
14
const queryClient = new QueryClient ( ) ;
@@ -16,7 +17,10 @@ export function NebulaProviders(props: { children: React.ReactNode }) {
16
17
return (
17
18
< QueryClientProvider client = { queryClient } >
18
19
< ThirdwebProvider >
19
- < TWAutoConnect accountAbstraction = { nebulaAAOptions } />
20
+ < TWAutoConnect
21
+ accountAbstraction = { nebulaAAOptions }
22
+ client = { nebulaAppThirdwebClient }
23
+ />
20
24
< ThemeProvider
21
25
attribute = "class"
22
26
disableTransitionOnChange
You can’t perform that action at this time.
0 commit comments