diff --git a/examples/nextjs/pages/_app.tsx b/examples/nextjs/pages/_app.tsx index 4bfb2ae4..3b0670d1 100644 --- a/examples/nextjs/pages/_app.tsx +++ b/examples/nextjs/pages/_app.tsx @@ -2,7 +2,7 @@ import '@node-real/walletkit/styles.css'; import '@/styles/globals.css'; import { mainnet } from 'wagmi/chains'; -import { trustWallet, metaMask, walletConnect } from '@node-real/walletkit/evm'; +import { trustWallet, metaMask, walletConnect, evmConfig } from '@node-real/walletkit/evm'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { WalletKitProvider, @@ -15,14 +15,14 @@ import { AppProps } from 'next/app'; const queryClient = new QueryClient(); const config: WalletKitConfig = { - walletConfig: { - autoConnect: true, - evmConfig: { + walletConfigs: [ + evmConfig({ + autoConnect: true, initialChainId: 1, wallets: [metaMask(), trustWallet(), walletConnect()], chains: [mainnet] as any[], - }, - }, + }), + ], appearance: { mode: 'light', }, diff --git a/examples/vite/src/App.tsx b/examples/vite/src/App.tsx index 60d6e44e..92b7dab6 100644 --- a/examples/vite/src/App.tsx +++ b/examples/vite/src/App.tsx @@ -5,7 +5,7 @@ import { WalletKitProvider, } from '@node-real/walletkit'; import VConsole from 'vconsole'; -import { metaMask, trustWallet, walletConnect } from '@node-real/walletkit/evm'; +import { evmConfig, metaMask, trustWallet, walletConnect } from '@node-real/walletkit/evm'; import { mainnet } from 'viem/chains'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; @@ -14,14 +14,14 @@ new VConsole(); const queryClient = new QueryClient(); const config: WalletKitConfig = { - walletConfig: { - autoConnect: true, - evmConfig: { + walletConfigs: [ + evmConfig({ + autoConnect: true, initialChainId: 1, wallets: [metaMask(), trustWallet(), walletConnect()], chains: [mainnet] as any[], - }, - }, + }), + ], appearance: { mode: 'auto', },