diff --git a/src/initializeInpageProvider.ts b/src/initializeInpageProvider.ts index be92baba..91d2a1ed 100644 --- a/src/initializeInpageProvider.ts +++ b/src/initializeInpageProvider.ts @@ -122,7 +122,7 @@ export async function announceCaip294WalletData( return; } - const providerState = await provider.request<{ extensionId: string }>({ + const providerState = await provider.request<{ extensionId?: string }>({ method: 'metamask_getProviderState', }); const extensionId = providerState?.extensionId;