-
Notifications
You must be signed in to change notification settings - Fork 619
[React Native SDK] Fix: Remove device share if recovering private key fails #4976
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
Conversation
|
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. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4976 +/- ##
==========================================
+ Coverage 47.67% 47.68% +0.01%
==========================================
Files 1057 1058 +1
Lines 57277 57290 +13
Branches 3940 3943 +3
==========================================
+ Hits 27307 27320 +13
Misses 29279 29279
Partials 691 691
*This pull request uses carry forward flags. Click here to find out more. |
packages/thirdweb/src/wallets/in-app/native/helpers/wallet/sharded-wallet.ts
Outdated
Show resolved
Hide resolved
packages/thirdweb/src/wallets/in-app/native/helpers/wallet/retrieval.ts
Outdated
Show resolved
Hide resolved
3342ef9 to
520ce54
Compare
520ce54 to
9567099
Compare
packages/thirdweb/src/wallets/in-app/native/helpers/wallet/retrieval.ts
Outdated
Show resolved
Hide resolved
0336925 to
9e0b675
Compare
9e0b675 to
abbe430
Compare
joaquim-verges
left a comment
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.
lil changeset for this?
Merge activity
|
PR-Codex overview
This PR introduces error handling improvements and a new function for managing device shares in the wallet system. It enhances user feedback for invalid device shares and ensures proper cleanup of device share data when errors occur.
Detailed summary
INVALID_DEVICE_SHARE_MESSAGEconstant to provide a specific error message for invalid device shares.removeDeviceSharefunction to remove device shares based onclientId.getWalletPrivateKeyFromSharesto use the new error message.getAccountFromSharesto callremoveDeviceSharewhen an invalid device state is detected.