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.
EIP-7997 #2499
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
Uh oh!
There was an error while loading. Please reload this page.
EIP-7997 #2499
Changes from all commits
6dec7f1File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
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.
[P1] The deployment guard should be
!state.account_has_code_or_nonce(FACTORY_ADDRESS), not!state.account_exists(FACTORY_ADDRESS).account_existsreturns true for any touched account (including one that only holds a balance), so if a user sends value to0x4e59b44847b379578588920cA78FbF26c0B4956Cbefore the MONAD_NEXT/Amsterdam activation, this check skips the factory deployment entirely and the fork silently ships without EIP-7997 code at the predeploy address. The base commit ("Add and use code-or-nonce primitive") introducedaccount_has_code_or_noncespecifically for this idiom —block_hash_history.cpp:57-58uses it, andState::create_contractalready preserves any existing balance per YP §7.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.
[P2] Missing
#pragma once. CLAUDE.md's style section requires#pragma onceon all headers, and the siblingblock_hash_history.hpp:16follows it. Without a guard, any TU that transitively includes this header more than once compiles slower and is one added definition away from an ODR breakage.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.
[P3] Prefer forward-declaring
Statehere — the siblingblock_hash_history.hpp:27usesclass State;instead of pulling in the fullstate3/state.hpptransitive graph, which keeps compile time down and cuts unnecessary rebuild churn whenstate.hppchanges.Uh oh!
There was an error while loading. Please reload this page.