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
How are you deploying your application? (if relevant)
No response
Describe the Bug
With two wallets that use the window.ethereum namespace installed, such as Trust Wallet and Rabby Wallet, the button in the wallet connect pop-up to "Install MetaMask Extension" doesn't work.
Expected Behavior
To be redirected to the metamask install page even with other wallets installed that use the window.ethereum namespace installed.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
Manually initialize the MetaMask connector using wagmi (other ways should also see this bug as it is related to using the SDK pop-up)
Have 2 other wallets that use the window.ethereum namespace (common). For example, Trust Wallet and Rabby Wallet
If MetaMask is not found, there is an SDK pop-up window that shows a button to "Install MetaMask Extension"
Press the button, nothing happens and this error comes up:
Uncaught (in promise) TypeError: Cannot delete property 'ethereum' of #<Window>
at metamask-sdk-RGE6HBAI.js?v=f475bd21:20131:95
at Generator.next (<anonymous>)
at metamask-sdk-RGE6HBAI.js?v=f475bd21:15299:44
at new Promise (<anonymous>)
at kk (metamask-sdk-RGE6HBAI.js?v=f475bd21:15277:16)
at metamask-sdk-RGE6HBAI.js?v=f475bd21:20130:20
at startDesktopOnboarding (metamask-sdk-RGE6HBAI.js?v=f475bd21:20133:12)
at HTMLUnknownElement.v3 (metamask-sdk-RGE6HBAI.js?v=f475bd21:27262:37)
at Object.Ar2 (metamask-sdk-RGE6HBAI.js?v=f475bd21:27272:130)
at Dr2 (metamask-sdk-RGE6HBAI.js?v=f475bd21:27279:42)
The text was updated successfully, but these errors were encountered:
tiagofilipenunes
changed the title
[Bug]: TypeError: Cannot delete property 'ethereum' of #<Window>
[BUG] "Install MetaMask Extension" doesn't work with two wallets that inject window.ethereum
Nov 25, 2024
SDK
Web
Provide environment information
MacOS 15.0.1
Chrome 131.0.6778.69
MetaMask SDK Version
0.30.1
MetaMask Mobile app Version
N/A
What browser are you using? (if relevant)
Chrome 131.0.6778.69
How are you deploying your application? (if relevant)
No response
Describe the Bug
With two wallets that use the window.ethereum namespace installed, such as Trust Wallet and Rabby Wallet, the button in the wallet connect pop-up to "Install MetaMask Extension" doesn't work.
Expected Behavior
To be redirected to the metamask install page even with other wallets installed that use the window.ethereum namespace installed.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://stackblitz.com/edit/new-wagmi-pddqi8
To Reproduce
The text was updated successfully, but these errors were encountered: