Skip to content

fix(wagmi): respect coinbasePreference when selecting Coinbase connector#5665

Open
Khizr97 wants to merge 1 commit into
chore/khizr-fixes-2from
chore/khizr-fixes-2-REOWN-4407
Open

fix(wagmi): respect coinbasePreference when selecting Coinbase connector#5665
Khizr97 wants to merge 1 commit into
chore/khizr-fixes-2from
chore/khizr-fixes-2-REOWN-4407

Conversation

@Khizr97
Copy link
Copy Markdown
Contributor

@Khizr97 Khizr97 commented May 12, 2026

Summary

  • coinbasePreference has been silently ignored since PR feat: base account #5269 migrated to the baseAccount connector — baseAccount was always used regardless of the option, breaking QR code and EOA flows
  • addThirdPartyConnectors now routes based on coinbasePreference:
    • 'smartWalletOnly'baseAccount (passkey/smart wallet, no QR code)
    • 'all' or 'eoaOnly'coinbaseWallet with the preference forwarded
  • getCoinbaseConnector now accepts and passes the preference param to coinbaseWallet({ preference })
  • enableBaseAccount: false + coinbasePreference: 'smartWalletOnly' correctly falls back to coinbaseWallet

Test plan

  • coinbasePreference: 'all'getCoinbaseConnector called with 'all', coinbaseWallet connector added
  • coinbasePreference: 'eoaOnly'getCoinbaseConnector called with 'eoaOnly', coinbaseWallet connector added
  • coinbasePreference: 'smartWalletOnly'getBaseAccountConnector called, baseAccount connector added
  • coinbasePreference: 'smartWalletOnly' + enableBaseAccount: false → falls back to coinbaseWallet
  • enableCoinbase: false → no connector added
  • 78 tests pass

Closes REOWN-4407

🤖 Generated with Claude Code

Routes addThirdPartyConnectors based on coinbasePreference: 'smartWalletOnly'
uses the baseAccount connector; 'all' and 'eoaOnly' use coinbaseWallet with
the preference forwarded so QR code and EOA flows work correctly. Regression
from PR #5269 which hardcoded baseAccount regardless of the option.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@linear
Copy link
Copy Markdown

linear Bot commented May 12, 2026

REOWN-4407

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 12, 2026

🦋 Changeset detected

Latest commit: 934cd5f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 26 packages
Name Type
@reown/appkit-adapter-wagmi Patch
@reown/appkit-cdn Patch
@reown/appkit Patch
@reown/appkit-adapter-bitcoin Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-solana Patch
@reown/appkit-adapter-ton Patch
@reown/appkit-adapter-tron Patch
@reown/appkit-common Patch
@reown/appkit-universal-connector Patch
@reown/appkit-ui Patch
@reown/appkit-controllers Patch
@reown/appkit-core Patch
@reown/appkit-utils Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-polyfills Patch
@reown/appkit-wallet Patch
@reown/appkit-siwe Patch
@reown/appkit-siwx Patch
@reown/appkit-wallet-button Patch
@reown/appkit-experimental Patch
@reown/appkit-testing Patch
@reown/appkit-cli Patch
@reown/appkit-pay Patch
@reown/appkit-codemod Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
appkit-demo Ready Ready Preview, Comment May 12, 2026 1:06pm
appkit-gallery Ready Ready Preview, Comment May 12, 2026 1:06pm
appkit-headless-sample-app Ready Ready Preview, Comment May 12, 2026 1:06pm
appkit-laboratory Ready Ready Preview, Comment May 12, 2026 1:06pm
9 Skipped Deployments
Project Deployment Actions Updated (UTC)
appkit-basic-example Ignored Ignored May 12, 2026 1:06pm
appkit-basic-sign-client-example Ignored Ignored May 12, 2026 1:06pm
appkit-basic-up-example Ignored Ignored May 12, 2026 1:06pm
appkit-ethers5-bera Ignored Ignored May 12, 2026 1:06pm
appkit-nansen-demo Ignored Ignored May 12, 2026 1:06pm
appkit-wagmi-cdn-example Ignored Ignored May 12, 2026 1:06pm
ethereum-provider-wagmi-example Ignored Ignored May 12, 2026 1:06pm
next-wagmi-solana-bitcoin-example Ignored Ignored May 12, 2026 1:06pm
vue-wagmi-example Ignored Ignored May 12, 2026 1:06pm

Request Review

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.

1 participant