-
Notifications
You must be signed in to change notification settings - Fork 759
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
monorepo: convert test data from JSON to objects #3642
Conversation
…thereumjs/ethereumjs-monorepo into monorepo/typescript-test-files
block_number: string | ||
gas_limit: string | ||
gas_used: string | ||
timestamp: string |
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.
What is going on here ?!
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.
Through this work I realized that these values are actually numeric string, not 0xprefixed strings. See for e.g.
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.
Created a numeric string type for it
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.
Oh, that's super cool (so: the new type)! Again on this level, small change, but really another typing milestone in our libraries, once we have applied this consistently throughout the libraries! 🤩
🙏 |
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
This PR begins addressing #3637 by converting JSON test data to objects.
The packages fully converted by this PR are:
Some other packages have been partially migrated because of cross-dependencies.