-
Notifications
You must be signed in to change notification settings - Fork 778
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: make _* methods protected / _common -> common #2857
Conversation
Codecov Report
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. |
852c5ce
to
de7a5e4
Compare
Rebased this via UI |
@@ -97,7 +97,7 @@ describe('Istanbul: EIP-152', () => { | |||
const res = precompile09({ | |||
data: hexToBytes('0x' + testCase.input), | |||
gasLimit: BigInt(20), | |||
_common: common, | |||
common: common, |
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.
common: common, | |
common, |
Super nit but we can now do this
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.
Will ignore this for now, we should really activate linter for test files though, this would then be caught and fixed.
@@ -108,7 +108,7 @@ describe('Istanbul: EIP-152', () => { | |||
const res = precompile09({ | |||
data: hexToBytes('0x' + testCase.input), | |||
gasLimit: BigInt(10000000), | |||
_common: common, | |||
common: common, |
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.
common: common, | |
common, |
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.
Two super-nit comments, but will approve anyways since it is just a style-ish comment. LGTM!
Addresses #2852
This is a first test on the above issue to get a feeling on the extent of the task, will start with theCommon
library.This also refactors the
EventEmitter
structure fromCommon
aligning this with EVM and client by separating theEventEmitter
from the main class and make this an own property to allow for a cleaner API (code completion).Update: this is now taking on all the libraries. This is on purpose a "rough" update, primarily targeting the main classes where the API is most visible. Everything else would just take too much time and effort at this point.