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
- Install both the Phantom and MetaMask browser extensions in Chrome
- Go to https://anza-xyz.github.io/wallet-adapter/example/
- Click "Select Wallet"
- Choose "Phantom" from the wallet list
- 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.
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
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):
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 viawindow.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.