ithacaxyz / odyssey

A testnet open-source Layer 2 from the future, co-designed with the developer tools stack.
https://www.ithaca.xyz/updates/odyssey
Apache License 2.0
200 stars 49 forks source link

Refactor revm_spec function to simplify hardfork detection logic #74

Closed cypherpepe closed 2 weeks ago

cypherpepe commented 2 weeks ago

Replaced individual hardfork checks in revm_spec with a loop-based approach using find. Moved hardfork-to-SpecId mapping logic to a separate helper function (map_hardfork_to_spec_id) for cleaner and more maintainable code.

cypherpepe commented 2 weeks ago

Thank you for the feedback. I'll keep your suggestions in mind and continue looking for ways to support the team. Let's close this thread, as these changes are not the right fit.

mattsse commented 2 weeks ago

appreciate it