Skip to content

Commit 0bbd218

Browse files
committed
(typing) allow readonly array of wallets for WalletProvider
1 parent 3761cd8 commit 0bbd218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/core/react/src/WalletProvider.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { WalletProviderBase } from './WalletProviderBase.js';
1616

1717
export interface WalletProviderProps {
1818
children: ReactNode;
19-
wallets: Adapter[];
19+
wallets: readonly Adapter[];
2020
autoConnect?: boolean | ((adapter: Adapter) => Promise<boolean>);
2121
localStorageKey?: string;
2222
onError?: (error: WalletError, adapter?: Adapter) => void;
@@ -49,7 +49,7 @@ export function WalletProvider({
4949
onError,
5050
}: WalletProviderProps) {
5151
const { connection } = useConnection();
52-
const adaptersWithStandardAdapters = useStandardWalletAdapters(adapters);
52+
const adaptersWithStandardAdapters = useStandardWalletAdapters(adapters as Adapter[]);
5353
const mobileWalletAdapter = useMemo(() => {
5454
if (!getIsMobile(adaptersWithStandardAdapters)) {
5555
return null;

0 commit comments

Comments
 (0)