Skip to content

fix: excludeWalletIds not working with bitcoin wallets #4120

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

Merged
merged 6 commits into from
Apr 1, 2025

Conversation

magiziz
Copy link
Contributor

@magiziz magiziz commented Apr 1, 2025

Description

Fixed an issue where excludeWalletIds option wasn't properly filtering Bitcoin wallets

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-2548

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

Copy link

linear bot commented Apr 1, 2025

Copy link

vercel bot commented Apr 1, 2025

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

Name Status Preview Comments Updated (UTC)
appkit-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2025 4:32pm
appkit-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2025 4:32pm
12 Skipped Deployments
Name Status Preview Comments Updated (UTC)
appkit-basic-ep ⬜️ Ignored (Inspect) Apr 1, 2025 4:32pm
appkit-basic-ep-example ⬜️ Ignored (Inspect) Apr 1, 2025 4:32pm
appkit-basic-example ⬜️ Ignored (Inspect) Apr 1, 2025 4:32pm
appkit-basic-sign-client-example ⬜️ Ignored (Inspect) Apr 1, 2025 4:32pm
appkit-basic-up-example ⬜️ Ignored (Inspect) Apr 1, 2025 4:32pm
appkit-ethers5-bera ⬜️ Ignored (Inspect) Apr 1, 2025 4:32pm
appkit-nansen-demo ⬜️ Ignored (Inspect) Apr 1, 2025 4:32pm
appkit-vue-solana ⬜️ Ignored (Inspect) Apr 1, 2025 4:32pm
appkit-wagmi-cdn-example ⬜️ Ignored (Inspect) Apr 1, 2025 4:32pm
ethereum-provider-wagmi-example ⬜️ Ignored (Inspect) Visit Preview Apr 1, 2025 4:32pm
next-wagmi-solana-bitcoin-example ⬜️ Ignored (Inspect) Apr 1, 2025 4:32pm
vue-wagmi-example ⬜️ Ignored (Inspect) Apr 1, 2025 4:32pm

Comment on lines +66 to +70
const isNameExcluded =
Boolean(connector.name) &&
ApiController.state.excludedWallets.some(wallet =>
HelpersUtil.isLowerCaseMatch(wallet.name, connector.name)
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bitcoin and solana doesn't have rdns so the only way to make sure they're excluded is to check by name

Copy link
Contributor

github-actions bot commented Apr 1, 2025

Warnings
⚠️ File packages/controllers/src/controllers/ApiController.ts contains a KEY or SECRET
⚠️ File packages/scaffold-ui/src/partials/w3m-connect-announced-widget/index.ts contains a KEY or SECRET

Generated by 🚫 dangerJS against b0dcf6d

Copy link
Contributor

github-actions bot commented Apr 1, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 75.02% 24944 / 33246
🔵 Statements 75.02% 24944 / 33246
🔵 Functions 66.18% 2104 / 3179
🔵 Branches 83.18% 4793 / 5762
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/appkit/src/client/appkit.ts 57.2% 85.86% 83.33% 57.2% 63-77, 80-87, 90-107, 110-116, 121, 125, 137, 143-146, 149, 151-152, 157, 201-204, 207-210, 213-220, 228-229, 236-237, 268-276, 280-282, 293-296, 298-305, 307, 309-321, 323-337, 364-365, 391-392, 396-460, 501-504, 511-515
packages/controllers/src/controllers/ApiController.ts 94.66% 91.35% 88.37% 94.66% 90-91, 152, 165, 338-346, 360, 364
packages/scaffold-ui/src/partials/w3m-connect-announced-widget/index.ts 91.66% 91.66% 60% 91.66% 36-37, 66, 69
packages/scaffold-ui/src/partials/w3m-connect-injected-widget/index.ts 91.11% 94.73% 75% 91.11% 47-48, 72, 75
packages/scaffold-ui/src/utils/ConnectorUtil.ts 100% 100% 100% 100%
Generated in workflow #10582 for commit b0dcf6d by the Vitest Coverage Report Action

Copy link

changeset-bot bot commented Apr 1, 2025

🦋 Changeset detected

Latest commit: b0dcf6d

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

This PR includes changesets to release 20 packages
Name Type
@reown/appkit-controllers Patch
@reown/appkit-scaffold-ui 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-wagmi Patch
@reown/appkit-utils Patch
@reown/appkit-cdn Patch
@reown/appkit-cli Patch
@reown/appkit-common Patch
@reown/appkit-core Patch
@reown/appkit-experimental Patch
@reown/appkit-polyfills Patch
@reown/appkit-siwe Patch
@reown/appkit-siwx Patch
@reown/appkit-ui 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

Copy link
Contributor

@svenvoskamp svenvoskamp left a comment

Choose a reason for hiding this comment

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

LGTM

@magiziz magiziz merged commit ab75760 into main Apr 1, 2025
31 checks passed
@magiziz magiziz deleted the fix/excludedWalletIds-bitcoin branch April 1, 2025 18:26
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