Comments (1)
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.
from detect-provider.
Related Issues (20)
- Metamusk point
- Test harness is outdated
- Linting process is outdated
- Build process is outdated
- Supported Node versions are outdated
- GitHub workflows are outdated
- JSDocs aren't being generated/published
- $@
- npm package is not up to date HOT 1
- Its seems the files for latest version is missing HOT 2
- MetaMask detect connection does not detect my mobile MetaMask App HOT 21
- Property 'request' does not exist on type 'MetaMaskEthereumProvider'.ts(2339) HOT 10
- USTc
- C++ HOT 1
- Readme's description of the behaviour of mobile apps. HOT 6
- Reject instead of resolve(null) when `mustBeMetamask` is true HOT 1
- Is there an API to open the MetaMask mobile app?
- Export MetaMaskEthereumProvider
- Make compatible with EIP-6963
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from detect-provider.