Skip to content

fix: catch error when ethereum provider is set before our attempt to set#416

Merged
adonesky1 merged 2 commits intomainfrom
ad/catch-error-global-eth-provider-thrown
Apr 22, 2025
Merged

fix: catch error when ethereum provider is set before our attempt to set#416
adonesky1 merged 2 commits intomainfrom
ad/catch-error-global-eth-provider-thrown

Conversation

@adonesky1
Copy link
Contributor

@adonesky1 adonesky1 commented Apr 22, 2025

Currently when another wallet (currently only seeing this with Rabby) is installed and gets to the ethereum global before us (and pulls up the ladder behind them) our provider errors out. This is now downstream causing our Solana Wallet Standard Provider to also fail to register.

Though we cannot overcome this issue we can atleast prevent the subsequent provider registration from failing.

Related: MetaMask/metamask-extension#30685

Video Demo of Bug

Screen.Recording.2025-04-22.at.1.42.46.PM.mov

After

Screen.Recording.2025-04-22.at.1.42.46.PM.mov

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants