-
Notifications
You must be signed in to change notification settings - Fork 419
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: Disconnect smart wallet when signer is disconnected #5617
[SDK] Fix: Disconnect smart wallet when signer is disconnected #5617
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: c48e0c9 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 #5617 +/- ##
==========================================
+ Coverage 48.16% 48.97% +0.80%
==========================================
Files 1089 1089
Lines 56875 56891 +16
Branches 4363 4440 +77
==========================================
+ Hits 27396 27861 +465
+ Misses 28779 28325 -454
- Partials 700 705 +5
*This pull request uses carry forward flags. Click here to find out more.
|
addConnectedWallet(wallet); | ||
|
||
if (wallet.id !== "smart") { |
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.
hmmm i think this check is important. you sure we can remove this? basically we never want to write 'smart' as the LAST_ACTIVE_EOA_ID
c2e1166
to
5aa0797
Compare
0a94055
to
14069cb
Compare
Merge activity
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
|
<!-- start pr-codex --> ## PR-Codex overview This PR focuses on improving error handling and connection management for smart wallets within the `thirdweb` package, enhancing user experience by ensuring proper disconnection and validation of address inputs. ### Detailed summary - Added error handling in `AccountProvider` for missing addresses. - Implemented disconnection logic for smart wallets in `handleSmartWalletConnection`. - Updated tests to cover new error scenarios and connection handling. - Refactored `DetailsModal` to manage modal state based on active accounts. - Improved test coverage for `DetailsModal` and connection manager functionalities. > The following files were skipped due to too many changes: `pnpm-lock.yaml` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
0942bdb
to
c48e0c9
Compare
PR-Codex overview
This PR focuses on improving the
AccountProvider
andDetailsModal
components in thethirdweb
package, adding error handling and enhancing wallet connection management.Detailed summary
AccountProvider
for missing address.DetailsModal
to useuseCallback
for closing the modal.AccountProvider
andDetailsModal
.createConnectionManager
.