Skip to content
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

chore: add getter for specId #998

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jan 22, 2024

CfgEnv no longer has the specId. this is now in the journaledstate

This adds a getter to the EmvContext, though it's not obvious to me where the SpecId in the journaledState is properly set, in the new functions this is always, latest.

if the EvmContext has access to the spec id then it's not clear why it gets it as argument:

https://github.com/bluealloy/revm/blob/main/crates/revm/src/context.rs#L214-L214

so I'm not 100% about this getter, but it's definitely useful the get access to the evm's specid during inspection.

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is updated every time, so it is up to data.

@rakita rakita merged commit d12d2f7 into bluealloy:main Jan 22, 2024
25 checks passed
@github-actions github-actions bot mentioned this pull request Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants