-
Notifications
You must be signed in to change notification settings - Fork 329
EIP-7002 and EIP-7251: withdrawal and consolidation requests #1084
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1084 +/- ##
==========================================
+ Coverage 94.29% 94.31% +0.02%
==========================================
Files 159 159
Lines 17160 17221 +61
==========================================
+ Hits 16181 16242 +61
Misses 979 979
Flags with carried forward coverage won't be shown. Click here to find out more.
|
aeb0c13 to
a76c241
Compare
a35aeed to
805d987
Compare
997baa7 to
792d126
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.
should we add more tests here for the new function (system_call_block_end)?
| GetInputFn* get_input = nullptr; ///< How to get the input for the system call. | ||
| /// Type of requests returned by block end system call. | ||
| /// Ignored for block start system contracts. | ||
| Requests::Type request_type = Requests::Type::deposit; |
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.
This abstraction is quite weak because we have disjoint set of objects with get_input and requires_type. Fine for me for now though.
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.
Agree this is hacky
chfast
left a comment
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.
Maybe squash commits related to EIP-7251. They are tiny.
test/state/system_contracts.cpp
Outdated
|
|
||
| const Transaction empty_tx{}; | ||
| Host host{rev, vm, state, block, block_hashes, empty_tx}; | ||
| [[maybe_unused]] const auto res = vm.execute(host, rev, msg, code.data(), code.size()); |
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.
| [[maybe_unused]] const auto res = vm.execute(host, rev, msg, code.data(), code.size()); | |
| const auto res = vm.execute(host, rev, msg, code.data(), code.size()); |
178d4f8 to
c2c75eb
Compare
https://eips.ethereum.org/EIPS/eip-7002
https://eips.ethereum.org/EIPS/eip-7251