-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Eliminate circular dependencies in web3 js #24729
Eliminate circular dependencies in web3 js #24729
Conversation
Codecov Report
@@ Coverage Diff @@
## master #24729 +/- ##
=======================================
Coverage 70.0% 70.0%
=======================================
Files 37 38 +1
Lines 2301 2303 +2
Branches 325 325
=======================================
+ Hits 1612 1614 +2
Misses 573 573
Partials 116 116 |
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.
lgtm
web3.js/src/transaction-constants.ts
Outdated
*/ | ||
export const PACKET_DATA_SIZE = 1280 - 40 - 8; | ||
|
||
export const SIGNATURE_LENGTH = 64; |
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.
Can you add docs that state this length is measured in bytes (as opposed to base58 string length)
* chore: enable circular dependency warnings on build * fix: eliminate circular dependencies in web3.js
Problem
Circular dependencies are actually really really bad. Let's eliminate them and keep them out.
Musing: I haven't checked yet, but I wonder if this might have something to do with why some folks are having so much trouble doing tree-shaking.
Summary of Changes