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

feat(CoinbaseWalletOptions): add preference #2002

Conversation

wilsoncusack
Copy link
Contributor

@wilsoncusack wilsoncusack commented May 26, 2024

The Coinbase Wallet Wagmi connector now has a preference argument, with type 'all' | 'smartWalletOnly' | 'eoaOnly' | undefined.

Being able to pass this preference allows app developers better configurability of the Coinbase Wallet popup. Preference based behavior documented here.

Additionally, ahead of Smart Wallet mainnets launch––as of Coinbase Wallet SDK version 4.0.2 (used in Wagmi ^2.9.5)––the Smart Wallet option will no longer show in the Coinbase Wallet popup when the sending app is on localhost. Developers found the host based behavior confusing. Now, if developers using versions ^4.0.0 want to see the Smart Wallet in the popup ahead of mainnets launch, they need to pass smartWalletOnly.

@wilsoncusack wilsoncusack requested a review from a team as a code owner May 26, 2024 01:00
Copy link

vercel bot commented May 26, 2024

@wilsoncusack is attempting to deploy a commit to the rainbowdotme Team on Vercel.

A member of the Team first needs to authorize it.

@magiziz
Copy link
Contributor

magiziz commented May 26, 2024

Thanks @wilsoncusack. Looking into this now 👍

Copy link

vercel bot commented May 26, 2024

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

Name Status Preview Comments Updated (UTC)
rainbowkit-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2024 3:47am
rainbowkit-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2024 3:47am

@magiziz
Copy link
Contributor

magiziz commented May 26, 2024

@wilsoncusack Changes looks great.

I have a quick question. When setting 'all' for preference should the popup show both smart wallet and mobile app options ? Tried testing this on localhost and with a preview link. Is this the expected result ?

1

2

Works great with 'smartWalletOnly' and 'eoaOnly'.

@wilsoncusack
Copy link
Contributor Author

wilsoncusack commented May 26, 2024

@magiziz thanks! As I mentioned in the PR description, ahead of mainnets launch smart wallet option will only show with smartWalletOnly. From docs image

@magiziz
Copy link
Contributor

magiziz commented May 26, 2024

@wilsoncusack Gotcha. Alright we'll have a last round of review and cut a release early next week. Thanks for getting this done👍

@magiziz
Copy link
Contributor

magiziz commented May 30, 2024

@wilsoncusack Closing this in favor of #2017

@magiziz magiziz closed this May 30, 2024
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.

2 participants