Skip to content

Commit 3bd4a4a

Browse files
committed
feat: 🎸 Added AccountWidget comomnent to the Client example
1 parent ebea2cd commit 3bd4a4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎examples/client/src/providers/WalletProvider/WalletProviderContext.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createContext, useContext } from 'react';
2-
import { Address, PublicClient, WalletClient } from 'viem';
2+
import { Address, Chain, PublicClient, WalletClient } from 'viem';
33

44
export interface WalletContextData {
55
publicClient: PublicClient;
@@ -9,9 +9,10 @@ export interface WalletContextData {
99
loading: boolean;
1010
isConnected: boolean;
1111
balance: string;
12+
targetChain: Chain;
13+
error?: string;
1214
connect(): void;
1315
disconnect(): void;
14-
error?: string;
1516
}
1617

1718
export const WalletContext = createContext<WalletContextData>({} as WalletContextData);

0 commit comments

Comments
 (0)