Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Dec 13, 2024
1 parent 97f7fac commit 7825a27
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/optimism/evm/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ pub fn revm_spec_by_timestamp_after_bedrock(
chain_spec: &OpChainSpec,
timestamp: u64,
) -> revm_primitives::SpecId {
if chain_spec.fork(OpHardfork::Isthmus).active_at_timestamp(timestamp) {
if chain_spec.fork(OpHardfork::Isthmus).active_at_timestamp(timestamp) ||
chain_spec.fork(OpHardfork::Holocene).active_at_timestamp(timestamp)
{
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) {
revm_primitives::GRANITE
} else if chain_spec.fork(OpHardfork::Fjord).active_at_timestamp(timestamp) {
Expand All @@ -33,10 +33,10 @@ 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) {
if chain_spec.fork(OpHardfork::Isthmus).active_at_head(block) ||
chain_spec.fork(OpHardfork::Holocene).active_at_head(block)
{
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) {
revm_primitives::GRANITE
} else if chain_spec.fork(OpHardfork::Fjord).active_at_head(block) {
Expand Down

0 comments on commit 7825a27

Please sign in to comment.