chore(spec-specs): EIP-8037 backports and refactors#10
Open
spencer-tb wants to merge 8 commits into
Open
Conversation
Co-authored-by: Sam Wilson <57262657+SamWilsn@users.noreply.github.com>
Co-authored-by: Sam Wilson <57262657+SamWilsn@users.noreply.github.com>
Co-authored-by: Sam Wilson <57262657+SamWilsn@users.noreply.github.com>
Co-authored-by: Sam Wilson <57262657+SamWilsn@users.noreply.github.com>
Co-authored-by: Sam Wilson <57262657+SamWilsn@users.noreply.github.com>
Co-authored-by: Sam Wilson <57262657+SamWilsn@users.noreply.github.com>
Co-authored-by: Sam Wilson <57262657+SamWilsn@users.noreply.github.com>
0d8b8b9 to
3754685
Compare
SamWilsn
approved these changes
Jun 2, 2026
| memory_output_size: U256, | ||
| ) -> None: | ||
| @dataclass | ||
| class GenericCallParams: |
| is_static=True if is_staticcall else evm.message.is_static, | ||
| code_address=params.code_address, | ||
| should_transfer_value=params.should_transfer_value, | ||
| is_static=True if params.is_staticcall else evm.message.is_static, |
There was a problem hiding this comment.
Suggested change
| is_static=True if params.is_staticcall else evm.message.is_static, | |
| is_static=params.is_staticcall or evm.message.is_static, |
337a502 to
35db224
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🗒️ Description
Companion PR to ethereum#2901 (EIP-8037), addressing the backport/refactor review comments so the
forks/osakatoforks/amsterdamdiff shows only genuine EIP-8037 changes.Backports
f04b6a4)MessageCallOutputso the four EIP-8037 fields append at the bottom, giving a clean append only diff againstforks/osaka(the keyword argument conversion was already backported in refactor(spec-specs): use kwargs for message call output collision returns ethereum/execution-specs#2238). Resolves review comment.5f1b567)(intrinsic_gas, calldata_floor)tuple fromcalculate_intrinsic_cost/validate_transactionwith anIntrinsicGasCostdataclass in the tuple returning forks (Prague, Osaka, BPO1 to BPO5), mirroring amsterdam minus itsstatefield. Resolves review comment.be445af)call()invocation ofcalculate_message_call_gasfrom positional to keyword arguments across Tangerine Whistle to BPO5, so amsterdam's switch to keyword form reads as a value only diff. Resolves review comment.97e342e)generic_call's long positional argument list into a per forkGenericCallParamsdataclass across all 24 forks. Resolves review comment.Refactors
5f3144d)state_gas_storage_setlocal insstoreand usesStateGasCosts.STORAGE_SETdirectly (amsterdam only). Resolves review comment (and suggestion).ade3f44)sstore's state gas updates into their ownifstack and liftscredit_state_gas_refundout of the nested refund branch (amsterdam only). Resolves review comment.3754685)StateGasCostsdocstring into a comment above the class (amsterdam only). Resolves review comment.Explicitly Unchanged
Merging
charge_state_gasintocharge_gas? Should the two functions be folded into a singlecharge_gas(evm, *, regular, state)?The decision was to keep it as 2 separate functions so each function emits its own EIP-3155 trace event
GasAndRefund&StateGasAndRefund. We can reopen this question once tracing is consolidated in a follow up PR.🔗 Related Issues or PRs
N/A.
✅ Checklist
just statictype(scope):.Cute Animal Picture