Skip to content

chore: replaced anvil hardforks with alloy hardforks #10612

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

Rimeeeeee
Copy link
Contributor

@Rimeeeeee Rimeeeeee commented May 23, 2025

fixes #10609
removed redundant EthereumHardfork and OptimismHardfork
added standalone fxns spec_id_from_optimism_hardfork, spec_id_from_ethereum_hardfork and ethereum_hardfork_from_block_tag for support
added tests to test standalone fxns

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

great start
looks like we also need the inverse of chain +u64 -> Option<Hardfork>?

let's do a rewrite of

impl<T: Into<BlockNumberOrTag>> From<T> for EthereumHardfork {

as regular fn here first and then we move this to the hardforks crate

@Rimeeeeee Rimeeeeee requested a review from mattsse May 24, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

chore: replace anvil hardforks with alloy-hardforks
2 participants