-
Notifications
You must be signed in to change notification settings - Fork 360
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: ensure optional chains are passed to wc #4838
Conversation
🦋 Changeset detectedLatest commit: 842baa0 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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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. |
d5325c3
to
032cbf4
Compare
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4838 +/- ##
==========================================
- Coverage 47.73% 47.70% -0.03%
==========================================
Files 1051 1052 +1
Lines 56707 56754 +47
Branches 3903 3904 +1
==========================================
+ Hits 27068 27075 +7
- Misses 28951 28991 +40
Partials 688 688
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
<!-- start pr-codex --> ## PR-Codex overview This PR focuses on enhancing the `wallet-connect` functionality by ensuring that optional chains are correctly handled in the wallet connection request process. ### Detailed summary - Updated the destructuring of the return value from `getChainsToRequest` to include `requiredChain`. - Changed how `optionalChains` and `chains` are assigned in `connectWC` and `initProvider` functions. - Modified the return structure of `getChainsToRequest` to include `requiredChain` and `optionalChains`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
032cbf4
to
842baa0
Compare
PR-Codex overview
This PR focuses on improving the handling of optional chains in the
wallet-connect
functionality, ensuring that required and optional chains are correctly processed during wallet connection requests.Detailed summary
getChainsToRequest
to returnrequiredChain
andoptionalChains
instead of justchainsToRequest
.connectWC
andinitProvider
functions to userequiredChain
for thechains
parameter.optionalChains
are passed correctly in wallet connect requests.