Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/optimism/src/handler/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl<CTX> OpPrecompileProvider<CTX> {
| OpSpecId::ECOTONE) => Self::new(Precompiles::new(spec.into_eth_spec().into())),
OpSpecId::FJORD => Self::new(fjord()),
OpSpecId::GRANITE | OpSpecId::HOLOCENE => Self::new(granite()),
OpSpecId::ISTHMUS => Self::new(isthumus()),
OpSpecId::ISTHMUS | OpSpecId::INTEROP => Self::new(isthumus()),
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion crates/optimism/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub enum OpSpecId {
HOLOCENE,
#[default]
ISTHMUS,
INTEROP,
}

impl OpSpecId {
Expand All @@ -23,7 +24,7 @@ impl OpSpecId {
Self::BEDROCK | Self::REGOLITH => SpecId::MERGE,
Self::CANYON => SpecId::SHANGHAI,
Self::ECOTONE | Self::FJORD | Self::GRANITE | Self::HOLOCENE => SpecId::CANCUN,
Self::ISTHMUS => SpecId::PRAGUE,
Self::ISTHMUS | Self::INTEROP => SpecId::PRAGUE,
}
}

Expand Down Expand Up @@ -65,6 +66,7 @@ impl From<OpSpecId> for &'static str {
OpSpecId::GRANITE => name::GRANITE,
OpSpecId::HOLOCENE => name::HOLOCENE,
OpSpecId::ISTHMUS => name::ISTHMUS,
OpSpecId::INTEROP => name::INTEROP,
}
}
}
Expand All @@ -79,6 +81,7 @@ pub mod name {
pub const GRANITE: &str = "Granite";
pub const HOLOCENE: &str = "Holocene";
pub const ISTHMUS: &str = "Isthmus";
pub const INTEROP: &str = "Interop";
}

#[cfg(test)]
Expand Down
Loading