Skip to content

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

Merged
0xmkh merged 4 commits into
mainfrom
chore/khizr-fixes-2-REOWN-4407
Jul 15, 2026
Merged

fix(wagmi): respect coinbasePreference when selecting Coinbase connector#5665
0xmkh merged 4 commits into
mainfrom
chore/khizr-fixes-2-REOWN-4407

Conversation

@Khizr97

@Khizr97 Khizr97 commented May 12, 2026

Copy link
Copy Markdown
Contributor

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

linear Bot commented May 12, 2026

Copy link
Copy Markdown

REOWN-4407

@changeset-bot

changeset-bot Bot commented May 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1830be9

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

This PR includes changesets to release 27 packages
Name Type
@reown/appkit-adapter-wagmi Patch
pay-test-exchange 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 Patch
@reown/appkit-utils Patch
@reown/appkit-cdn Patch
@reown/appkit-cli Patch
@reown/appkit-codemod Patch
@reown/appkit-common Patch
@reown/appkit-controllers Patch
@reown/appkit-core Patch
@reown/appkit-experimental Patch
@reown/appkit-pay Patch
@reown/appkit-polyfills Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-siwe Patch
@reown/appkit-siwx Patch
@reown/appkit-testing Patch
@reown/appkit-ui Patch
@reown/appkit-universal-connector Patch
@reown/appkit-wallet Patch
@reown/appkit-wallet-button 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

vercel Bot commented May 12, 2026

Copy link
Copy Markdown

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

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

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

Visual Regression Test Results ✅ Passed

⚠️ 20 visual change(s) detected

Chromatic Build: https://www.chromatic.com/build?appId=6493191bf4b10fed8ca7353f&number=963
Storybook Preview: https://6493191bf4b10fed8ca7353f-pbvpvmxzly.chromatic.com/

👉 Please review the visual changes in Chromatic and accept or reject them.

@github-actions

Copy link
Copy Markdown
Contributor
Warnings
⚠️

🔑 Potential UUID detected in packages/adapters/wagmi/src/tests/client.test.ts (line 419): 07ba87ed-43aa-4adf-4...

Generated by 🚫 dangerJS against 1830be9

@github-actions

Copy link
Copy Markdown
Contributor

📦 Bundle Size Check

All bundles are within size limits

📊 View detailed bundle sizes

> @reown/appkit-monorepo@1.7.1 size /home/runner/work/appkit/appkit


> size-limit

@reown/appkit - Main Entry
Size limit:   80 kB
Size:         75.87 kB with all dependencies, minified and gzipped
Loading time: 1.5 s    on slow 3G
Running time: 567 ms   on Snapdragon 410
Total time:   2.1 s
@reown/appkit/react
Size limit:   236 kB
Size:         235.11 kB with all dependencies, minified and gzipped
Loading time: 4.6 s     on slow 3G
Running time: 1000 ms   on Snapdragon 410
Total time:   5.6 s
@reown/appkit/vue
Size limit:   80 kB
Size:         75.87 kB with all dependencies, minified and gzipped
Loading time: 1.5 s    on slow 3G
Running time: 397 ms   on Snapdragon 410
Total time:   1.9 s
@reown/appkit-scaffold-ui
Size limit:   220 kB
Size:         214.41 kB with all dependencies, minified and gzipped
Loading time: 4.2 s     on slow 3G
Running time: 718 ms    on Snapdragon 410
Total time:   5 s
@reown/appkit-ui
Size limit:   500 kB
Size:         13.16 kB with all dependencies, minified and gzipped
Loading time: 258 ms   on slow 3G
Running time: 84 ms    on Snapdragon 410
Total time:   341 ms

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.55% 40100 / 51045
🔵 Statements 78.55% 40100 / 51045
🔵 Functions 76.06% 4283 / 5631
🔵 Branches 86.66% 9788 / 11294
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/adapters/wagmi/src/client.ts 75.9% 67.79% 79.54% 75.9% 125-126, 131-132, 146-156, 217-218, 258-261, 386-387, 401, 411-412, 425-426, 503-504, 565-566, 583-598, 612-629, 649-650, 663-672, 683-684, 688-689, 694-726, 745-754, 758-764, 767-778, 787-788, 799-800, 821-823, 837-838, 851-852, 867-868, 911-912, 936-937, 945-946, 951-952, 959-960, 968-969, 974-975, 984-985, 993-994, 999-1000, 1006-1028, 1031-1044, 1096-1097, 1102-1103
packages/adapters/wagmi/src/utils/helpers.ts 44.87% 75% 42.85% 44.87% 8-24, 27-33, 36-45, 48-53, 82-86, 100-104
Generated in workflow #17181 for commit 1830be9 by the Vitest Coverage Report Action

@0xmkh 0xmkh merged commit e5ee43c into main Jul 15, 2026
34 of 42 checks passed
@0xmkh 0xmkh deleted the chore/khizr-fixes-2-REOWN-4407 branch July 15, 2026 14:26
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants