Skip to content
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

Merged
merged 2 commits into from
Feb 22, 2024
Merged

Add support for OKX wallet #312

merged 2 commits into from
Feb 22, 2024

Conversation

rosepuppy
Copy link
Contributor

@rosepuppy rosepuppy commented Feb 16, 2024

depends on dydxprotocol/v4-localization#285

Screen.Recording.2024-02-16.at.11.50.33.AM.mov

Copy link

vercel bot commented Feb 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
v4-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 22, 2024 9:48pm
v4-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 22, 2024 9:48pm

@@ -18,15 +19,6 @@ export const isMetaMask = (provider: ExternalProvider) => (
&& (
!(provider as InjectedCoinbaseWalletExtensionProvider).overrideIsMetaMask
)

/* not a MetaMask wannabe! */
&& (
Copy link
Contributor Author

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.

Copy link
Contributor

@jaredvu jaredvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants