-
Notifications
You must be signed in to change notification settings - Fork 53
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
refactor: allow Transaction.pack(unpacked) #599
base: develop
Are you sure you want to change the base?
Conversation
The function can pack its unpacked result, but the function signature does not allow it. This is very annoying, for example, I cannot set version to number 0 to call `pack`.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #599 +/- ##
===========================================
+ Coverage 83.84% 84.81% +0.96%
===========================================
Files 116 116
Lines 23583 23587 +4
Branches 2223 2289 +66
===========================================
+ Hits 19773 20005 +232
+ Misses 3770 3538 -232
- Partials 40 44 +4
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Thanks for your PR. However, I have noticed that the |
This breaking change is not just a fix for this PR, it is also a bug since 0.20 |
Description
The function can pack its unpacked result, but the function signature
does not allow it. This is very annoying, for example, I cannot set
version to number 0 to call
pack
.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
packages/base/tests/serialize.test.ts
pnpm --filter base lint && pnpm --filter base test