You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @zeosamaster i bumped into this issue and i think that is actually an expected behavior as both providers are stored in the window.ethereum.providers.
You can then filter out the provider you need and use it in your app. Check it out here.
While this is a fortunate case where Coinbase & MetaMask play good together (by storing both objects inside the window.ethereum.providers and lets you choose which one you use), there are cases where other wallet extensions simply overwrite the global window.ethereum object.
I faced an issue where i had "Frame Companion" installed alongside MetaMask and Frame's extension simply overwrites the object which makes any app unusable(cannot detect MetaMask extension) ...
I opened an issue for this as i think this is the right approach so dapps can detect such cases and react (give users feedback that he has conflicting extensions installed).
For now, unfortunately, we cannot really act in such situations and i really hope we can at least get a rejection from the await detectEthereumProvider({ mustBeMetaMask: true }) so we can handle these cases in our dapps.
Steps to reproduce
const provider = await detectEthereumProvider({ mustBeMetaMask: true })
await provider.request({ method: 'eth_requestAccounts' })
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: