MetaMask conflicting with Coinbase wallet

Viewed 1560
1 Answers

Issue being that you have more than one provider installed, if you want to only target MetaMask you need to pick that provider alone.

// Find MetaMask Provider

const provider = window.ethereum.providers.find((provider) => provider.isMetaMask);
provider.request({ method: 'eth_requestAccounts' });

You can also try using metamask provider detector but it didn't work for me. https://docs.metamask.io/guide/ethereum-provider.html#ethereum-provider-api

Related