Skip to content

Trails in wallet widget#578

Open
mithatakbulut wants to merge 6 commits intomasterfrom
trails-in-wallet-widget
Open

Trails in wallet widget#578
mithatakbulut wants to merge 6 commits intomasterfrom
trails-in-wallet-widget

Conversation

@mithatakbulut
Copy link
Contributor

Ticket link:

API breaking changes:

  • Yes
  • No

Manual testing required:

  • Yes
  • No

Docs changes required:

  • Yes
  • No

Description

Screen.Recording.2026-02-04.at.22.55.00.mov
  • Updated custom wagmi connectors to accept the new connect({ withCapabilities }) signature.
  • Normalized account return shapes so we return Address[] by default and { address, capabilities }[] only when requested.

Why

wagmi’s connector contract now supports capability-aware accounts. Our custom connectors were still returning only Address[] and didn’t accept the new parameters, which caused TS errors during build. These changes keep existing behavior intact for current callers while supporting the new wagmi shape.

Introduced a new Trails widget in the Swap component, replacing the previous GeneralList.
- Upgraded viem to version 2.41.2 and wagmi to version 2.18.0 in package.json files for all relevant packages and examples.
- Added overrides for viem and wagmi in package.json and pnpm-lock.yaml to ensure consistent dependency resolution.
- Added "baseUrl" to tsconfig.json for both React and Wallet Widget examples to improve module resolution.
- Introduced "paths" in the Wallet Widget tsconfig.json to facilitate easier imports from the checkout package.
@mithatakbulut mithatakbulut requested review from a team and 0xsequence-bot as code owners February 4, 2026 19:57
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 4, 2026

Deploying web-sdk-react-example with  Cloudflare Pages  Cloudflare Pages

Latest commit: c3a3343
Status: ✅  Deploy successful!
Preview URL: https://a971017f.web-sdk-react-example.pages.dev
Branch Preview URL: https://trails-in-wallet-widget.web-sdk-react-example.pages.dev

View logs

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