From 06e9771264e9bbfe9ccf74e0484dad41dff86a49 Mon Sep 17 00:00:00 2001 From: ffmcgee Date: Fri, 13 Dec 2024 10:36:46 +0100 Subject: [PATCH] refactor: minor fix --- src/initializeInpageProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;