Skip to content

Commit

Permalink
Hack, return holocene revm spec id
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Dec 13, 2024
1 parent 328d493 commit 97f7fac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/optimism/evm/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn revm_spec_by_timestamp_after_bedrock(
timestamp: u64,
) -> revm_primitives::SpecId {
if chain_spec.fork(OpHardfork::Isthmus).active_at_timestamp(timestamp) {
todo!()
revm_primitives::HOLOCENE // todo: replace <https://github.com/bluealloy/revm/issues/1874>
} else if chain_spec.fork(OpHardfork::Holocene).active_at_timestamp(timestamp) {
revm_primitives::HOLOCENE
} else if chain_spec.fork(OpHardfork::Granite).active_at_timestamp(timestamp) {
Expand All @@ -34,7 +34,7 @@ pub fn revm_spec_by_timestamp_after_bedrock(
/// Map the latest active hardfork at the given block to a revm [`SpecId`](revm_primitives::SpecId).
pub fn revm_spec(chain_spec: &OpChainSpec, block: &Head) -> revm_primitives::SpecId {
if chain_spec.fork(OpHardfork::Isthmus).active_at_head(block) {
todo!()
revm_primitives::HOLOCENE // todo: replace <https://github.com/bluealloy/revm/issues/1874>
} else if chain_spec.fork(OpHardfork::Holocene).active_at_head(block) {
revm_primitives::HOLOCENE
} else if chain_spec.fork(OpHardfork::Granite).active_at_head(block) {
Expand Down

0 comments on commit 97f7fac

Please sign in to comment.