Skip to content

Commit

Permalink
#[cfg(all(feature = "taiko", not(feature = "optimism")))]
Browse files Browse the repository at this point in the history
  • Loading branch information
CeciliaZ030 authored Feb 15, 2024
1 parent 3700b8e commit 0ebc1e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/primitives/src/specification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl From<&str> for SpecId {
"Canyon" => SpecId::CANYON,
#[cfg(feature = "optimism")]
"Ecotone" => SpecId::ECOTONE,
#[cfg(feature = "taiko")]
#[cfg(all(feature = "taiko", not(feature = "optimism")))]
"Katla" => SpecId::KATLA,
_ => Self::LATEST,
}
Expand Down Expand Up @@ -277,7 +277,7 @@ macro_rules! spec_to_generic {
use $crate::EcotoneSpec as SPEC;
$e
}
#[cfg(feature = "taiko")]
#[cfg(all(feature = "taiko", not(feature = "optimism")))]
$crate::SpecId::KATLA => {
use $crate::KatlaSpec as SPEC;
$e
Expand Down Expand Up @@ -414,7 +414,7 @@ mod optimism_tests {
}
}

#[cfg(feature = "taiko")]
#[cfg(all(feature = "taiko", not(feature = "optimism")))]
#[cfg(test)]
mod taiko_tests {
use super::*;
Expand Down

0 comments on commit 0ebc1e0

Please sign in to comment.