Closed Somnus007 closed 1 year ago
I have observed the page-refresh-required issue as well on Brave, without Coinbase Wallet installed.
On the first page load, only the Brave provider is present, after refresh it's the MetaMask provider. For Brave, my "Default Ethereum wallet" preference is set to "Extension" (aka MetaMask). This only started happening in the past week or two.
Brave: 1.50.121 (Chromium: 112.0.5615.138) MetaMask: 10.29.0
Related to #18157
We will probably consider EIP-6963 Multi Injected Provider Discovery in the near future to prevent provider injection collisions.
This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.
This issue was closed because there has been no follow up activity in the last 45 days. If you feel this was closed in error, please reopen and provide evidence on the latest release of the extension. Thank you for your contributions.
EIP-6963 Support is now available in v11.4.0 of our Chrome Browser Extension. We recommend modifying your code to adopt EIP-6963. WalletConnect has provided an example here: https://github.com/WalletConnect/EIP6963
Describe the bug
When both Coinbase (v 3.16.2) and Metamask (v. 10.28.3) extensions are installed, the first time a page is opened (NOT RELOAD PAGE), MetaMask does not inject its global API at window.ethereum.
window.ethereum
is entirely from Coinbase at this moment. But if you reload this page, you will see both Metamask and Coinbase providers inwindow.ethereum
Steps to reproduce
On Chrome (112.0.5615.137 version):
window.ethereum
which is entirely from Coinbasewindow.ethereum
Error messages or log output
Version
10.28.3
Build type
None
Browser
Chrome
Operating system
MacOS
Hardware wallet
No response
Additional context
No response