-
-
Notifications
You must be signed in to change notification settings - Fork 289
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: incorrect variable access #6862
Conversation
if (data.length > this.maxSizePerMessage) { | ||
throw Error(`ssz_snappy encoded data length ${length} > ${this.maxSizePerMessage}`); | ||
throw Error(`ssz_snappy encoded data length ${data.length} > ${this.maxSizePerMessage}`); |
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.
window.length was used instead.
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.
how was the code was compiled?
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.
I think this is because we include dom lib in our tsconfig.build.json
.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #6862 +/- ##
============================================
- Coverage 62.20% 62.20% -0.01%
============================================
Files 571 571
Lines 60021 60022 +1
Branches 1976 1973 -3
============================================
Hits 37334 37334
- Misses 22644 22645 +1
Partials 43 43 |
Performance Report✔️ no performance regression detected Full benchmark results
|
🎉 This PR is included in v1.20.0 🎉 |
Motivation
Make sure all variable access are correct. Took this opportunity to explicitly implement the
DataTransform
interface.