-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix(react,vue): useWriteContract value #3984
Conversation
🦋 Changeset detectedLatest commit: 9ce5380 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: -46 B (-0.01%) Total Size: 826 kB
ℹ️ View Unchanged
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3984 +/- ##
=======================================
Coverage 96.92% 96.92%
=======================================
Files 280 280
Lines 19624 19623 -1
Branches 681 678 -3
=======================================
Hits 19020 19020
+ Misses 594 592 -2
- Partials 10 11 +1 ☔ View full report in Codecov by Sentry. |
More changes needed in Viem, will re-open this later. |
Removed dependencies detected. Learn more about Socket for GitHub ↗︎ 🚮 Removed packages: npm/typescript@5.4.2 |
@@ -62,7 +62,7 @@ jobs: | |||
timeout-minutes: 5 | |||
strategy: | |||
matrix: | |||
typescript-version: ['5.0.4', '5.1.6', '5.2.2', 'latest'] | |||
typescript-version: ['5.0.4', '5.1.6', '5.2.2', '5.3.3', '5.4.5'] |
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.
expand coverage
// TODO: Should use `UnionOmit<..., 'chain'>` on `viem_WriteContractParameters` result instead | ||
// temp workaround that doesn't affect runtime behavior for for https://github.com/wevm/wagmi/issues/3981 |
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.
Needs to be addresses in Viem first
Description
useWriteContract().writeContract
value
not inferred correctly whenconfig
set up with chain that has formatters/serializers (e.gbase
)This TS Playground illustrates the issue well. Fixes #3981.