-
Notifications
You must be signed in to change notification settings - Fork 52
BREAKING CHANGE: unexpected unpacked result in blockchain #601
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #601 +/- ##
===========================================
+ Coverage 83.84% 87.19% +3.34%
===========================================
Files 116 116
Lines 23583 23598 +15
Branches 2223 2418 +195
===========================================
+ Hits 19773 20576 +803
+ Misses 3770 2980 -790
- Partials 40 42 +2
... and 10 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
It works but the solution seems weird, it might be a historical issue but I still wonder why is |
I found that the problem originated from a large PR at #413. The PR removed the hex format conversion, but the reviewer didn't realize that the return value type had changed. This was because the types were annotated by being inferred from |
Approved but I'm still worried about the usage of |
It might be not consistent with some blockchain SDK, such as typechain. Lumos's current default number codec draws on some developer conventions from them |
Description
Fixes #600
This pull request fixed the unpacked result of
blockchain.*.unpack
. It now matches the RPC type, which uses hex format instead ofnumber
orBI
.This bug was caused by [email protected] at #413 but was never reported before #599 because the API
Transaction.unpack
orBlock.unpack
was so rarely used.Type of change
How Has This Been Tested?
pack()
andunpack()
inbase.blockchain