-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Fix: Account switching with connected smart wallets #5592
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
[SDK] Fix: Account switching with connected smart wallets #5592
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: c3d7b66 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5592 +/- ##
==========================================
+ Coverage 43.98% 44.17% +0.18%
==========================================
Files 1082 1083 +1
Lines 56235 56276 +41
Branches 3954 3975 +21
==========================================
+ Hits 24737 24858 +121
+ Misses 30815 30735 -80
Partials 683 683
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
| "level": "error" | ||
| } | ||
| }, | ||
| "noUselessElse": "off" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kinda liked this rule
Fixes #5537 <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on improving wallet connection handling in the `thirdweb` project, specifically when switching signer accounts and simplifying connection logic for smart wallets. ### Detailed summary - Updated `biome.json` to add `"noUselessElse": "off"`. - Modified wallet connection logic in `packages/thirdweb/src/wallets/manager/index.ts` for better handling of active wallets. - Added tests for connection management in `packages/thirdweb/src/wallets/manager/connection-manager.test.ts`. - Removed environment variable logging across multiple API routes. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
838973d to
c3d7b66
Compare
Fixes #5537
PR-Codex overview
This PR focuses on enhancing the wallet connection management in the
thirdweblibrary, specifically improving the handling of smart wallets and updating the connection logic for various API routes.Detailed summary
biome.jsonto include"noUselessElse": "off".packages/thirdweb/src/wallets/manager/index.ts.packages/thirdweb/src/wallets/manager/connection-manager.test.ts.