- Notifications
You must be signed in to change notification settings - Fork 333
Implement "CALLS 2.0" #630
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
388e252 to 8a63492 Compare Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## master #630 +/- ## ========================================== + Coverage 97.99% 98.14% +0.14% ========================================== Files 121 122 +1 Lines 12091 12982 +891 ========================================== + Hits 11849 12741 +892 + Misses 242 241 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
59bedbf to 2e43e86 Compare | Uses |
| Mind that I've pushed a test case to directly cover the recently discussed behavior of MIN_CALLEE_GAS here: 11cb4b0. |
| Also mind that the PR has been adjusted to the suggestion from here ethereum/EIPs#8287 (comment) |
lib/evmone/instructions_calls.cpp Outdated
| const auto value = (Op == OP_EXTSTATICCALL || Op == OP_EXTDELEGATECALL) ? 0 : stack.pop(); | ||
| const auto has_value = value != 0; | ||
| | ||
| stack.push(2); // Assume (hard) failure. |
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.
Also I think would be good to have named constants for status codes
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.
heh, this invites a heated debate about naming, but let's try. I'll push a suggestion in a sec.
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.
You should clean the git history and write better PR description
I don't think the git history is very useful in this case, it's a pretty atomic change, and the individual commits are mostly feedback addressing, renaming, bumps and backandforwards. This looks like a squash merge to me. |
Implements [EIP-7069](https://eips.ethereum.org/EIPS/eip-7069),as part of the [MegaEOF spec](https://github.com/ipsilon/eof/blob/main/spec/eof.md). Adds implementation of EXTCALL, EXTDELEGATECALL and EXTSTATICCALL instructions.
Implements [EIP-7069](https://eips.ethereum.org/EIPS/eip-7069),as part of the [MegaEOF spec](https://github.com/ipsilon/eof/blob/main/spec/eof.md). Adds implementation of EXTCALL, EXTDELEGATECALL and EXTSTATICCALL instructions. Co-authored-by: pdobacz <5735525+pdobacz@users.noreply.github.com>
Closes #773
Implements EIP-7069, as part of the greater MegaEOF spec