Git Product home page Git Product logo

Comments (1)

GabrielBuragev avatar GabrielBuragev commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.