diff --git a/packages/core/react/src/WalletProvider.tsx b/packages/core/react/src/WalletProvider.tsx index be50c5d7f..c568d055f 100644 --- a/packages/core/react/src/WalletProvider.tsx +++ b/packages/core/react/src/WalletProvider.tsx @@ -16,7 +16,7 @@ import { WalletProviderBase } from './WalletProviderBase.js'; export interface WalletProviderProps { children: ReactNode; - wallets: Adapter[]; + wallets: readonly Adapter[]; autoConnect?: boolean | ((adapter: Adapter) => Promise); localStorageKey?: string; onError?: (error: WalletError, adapter?: Adapter) => void; @@ -49,7 +49,7 @@ export function WalletProvider({ onError, }: WalletProviderProps) { const { connection } = useConnection(); - const adaptersWithStandardAdapters = useStandardWalletAdapters(adapters); + const adaptersWithStandardAdapters = useStandardWalletAdapters(adapters as Adapter[]); const mobileWalletAdapter = useMemo(() => { if (!getIsMobile(adaptersWithStandardAdapters)) { return null;