-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for OKX wallet #312
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -18,15 +19,6 @@ export const isMetaMask = (provider: ExternalProvider) => ( | |||
&& ( | |||
!(provider as InjectedCoinbaseWalletExtensionProvider).overrideIsMetaMask | |||
) | |||
|
|||
/* not a MetaMask wannabe! */ | |||
&& ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this because some wallets such as OKX wallet purposely override the metamask ethereum provider and this check prevents the override and would skip the provider altogether. This will then fallback to WalletConnect.
I think we should not do this as it should not be the dApp's call on how the user choose to manage there wallet extension defaults/overrides. If the user wants to override their metamask with another wallet, we should let them.
a8008e5
to
b020c3a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
b020c3a
to
4e03197
Compare
depends on dydxprotocol/v4-localization#285
Screen.Recording.2024-02-16.at.11.50.33.AM.mov