-
Notifications
You must be signed in to change notification settings - Fork 767
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
[VM] cleanup some changes made in the TangerineWhistle PR #814
Conversation
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
Why is my second commit not showing up? It is in the branch? https://github.com/ethereumjs/ethereumjs-vm/tree/cleanup-tangerine-whistle |
25e50dc
to
02300d6
Compare
Found an issue with the TW implementation in BlockchainTests. Will push a fix soon which I'd like to have in this PR. |
Ready to review. |
661bb4b
to
654fcbf
Compare
654fcbf
to
681418a
Compare
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.
There are some additions that are not covered by tests.
Let me know if it gets tricky to test those additions. I know there are some other uncovered places as well, we could bundle them up in a code coverage sprint.
* @param address - Address of account | ||
*/ | ||
async accountExists(address: Buffer): Promise<boolean> { | ||
return this._state.accountExists(address) |
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.
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.
Added a test for this (StateManager
accountExists is actually being tested; the accountExists
of EEI is actually a proxy function but we should still test that)
if (it.node) { | ||
return it.value.deleted | ||
} | ||
return false |
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.
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.
Added test for this
…ereumjs-vm into cleanup-tangerine-whistle
@evertonfraga The tests in 49f21ff should increase test coverage to your requested missing coverage 😄 |
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
After reviewing #807 some code quality comments were made. This PR intends to resolve these comments.