From 0ab4fcd86cc5fd57304f6c3dbedd6d6b4aca072c Mon Sep 17 00:00:00 2001 From: Ilan <36084092+ilanolkies@users.noreply.github.com> Date: Wed, 3 Sep 2025 20:51:51 -0300 Subject: [PATCH] Change account check from 1 to less than 1 `eth_accounts` now returns the full list of accounts for which the user has permitted access to. See the note here https://docs.metamask.io/wallet/how-to/access-accounts#handle-accounts --- v3-sdk/minting-position/src/libs/providers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3-sdk/minting-position/src/libs/providers.ts b/v3-sdk/minting-position/src/libs/providers.ts index f59fe477..9191effd 100644 --- a/v3-sdk/minting-position/src/libs/providers.ts +++ b/v3-sdk/minting-position/src/libs/providers.ts @@ -58,7 +58,7 @@ export async function connectBrowserExtensionWallet() { const provider = new ethers.providers.Web3Provider(ethereum) const accounts = await provider.send('eth_requestAccounts', []) - if (accounts.length !== 1) { + if (accounts.length < 1) { return }