anza-xyz / anza-xyz/wallet-adapter

Phantom wallet does not open when MetaMask extension is also installed

Abierto
#1,144 1 comentario 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
2k
Forks
1.1k
Merge medio
10 h 19 min
PR fusionados (30 d)
3

Descripción

**Describe the bug**
When both Phantom and MetaMask browser extensions are installed, clicking on Phantom in the wallet selection modal does not open the Phantom wallet popup. The connection attempt silently fails or gets intercepted by MetaMask's provider.

**To Reproduce**
1. Install both the Phantom and MetaMask browser extensions in Chrome
2. Go to https://anza-xyz.github.io/wallet-adapter/example/
3. Click "Select Wallet"
4. Choose "Phantom" from the wallet list
5. Phantom wallet popup does not appear — no connection prompt is shown

**Expected behavior**
The Phantom wallet popup should open and prompt the user to approve the connection, regardless of whether MetaMask is also installed.

**Screenshots**
_N/A — no visible error; the wallet simply does not open._

**Desktop (please complete the following information):**
- OS: macOS
- Browser: Chrome
- Version: Latest

**Smartphone (please complete the following information):**
N/A — desktop only

**Additional context**
This is likely caused by a provider collision. Both Phantom and MetaMask inject into `window.ethereum`, and Phantom also provides a Solana provider via `window.phantom.solana`. When MetaMask is present, it may be overwriting or interfering with Phantom's provider detection in the wallet adapter, preventing Phantom from being properly resolved and connected.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.