-
Notifications
You must be signed in to change notification settings - Fork 405
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: Undefined chain ID on eip1193 provider input #5871
[SDK] Fix: Undefined chain ID on eip1193 provider input #5871
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 9abc3cc The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5871 +/- ##
=======================================
Coverage 55.18% 55.18%
=======================================
Files 1123 1123
Lines 59611 59611
Branches 5031 5031
=======================================
+ Hits 32895 32896 +1
+ Misses 25996 25995 -1
Partials 720 720
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on improving the handling of connections in the `thirdweb` SDK by gracefully managing scenarios where a wallet does not provide a chain ID. It adds checks to avoid errors and includes tests for these cases. ### Detailed summary - Updated `fromEip1193Provider` to check for `undefined` chain ID before switching chains. - Added a test to handle wallet connection with no chain ID. - Ensured compatibility with wallets like Abstract that may not send a chain ID on connection. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
d57171a
to
c118382
Compare
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the `thirdweb` SDK by gracefully handling cases where a wallet does not provide a chain ID during connection, ensuring better compatibility with certain wallets. ### Detailed summary - Updated the logic in `fromEip1193Provider` to check for `undefined` chain IDs. - Added a test to verify connection handling when no chain ID is provided. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
c118382
to
9abc3cc
Compare
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on improving the handling of wallet connections in the `thirdweb` SDK, specifically addressing cases where the chain ID may be undefined. It ensures that the SDK can gracefully manage connections without a specified chain ID. ### Detailed summary - Modified the check for `chain.id` in `fromEip1193Provider` to allow for undefined chain IDs. - Added a test case to handle wallet connection when no chain ID is provided, ensuring the SDK behaves correctly in this scenario. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
9abc3cc
to
6976cb4
Compare
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the `thirdweb` SDK by improving the handling of connections to wallets that may not provide a chain ID, ensuring the SDK can gracefully manage these scenarios. ### Detailed summary - Updated `fromEip1193Provider` to check for undefined `chain.id` before switching chains. - Added a test case to handle wallet connections that do not provide a chain ID, ensuring robustness in the connection process. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
6976cb4
to
79a135a
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on improving the handling of wallet connections in the
thirdweb
SDK by gracefully managing cases where the chain ID is undefined, particularly for certain wallets.Detailed summary
chain.id
infromEip1193Provider
to ensure it is defined before comparison.