Add interop hardfork in all relevant places. (#14582)

This commit is contained in:
Solar Mithril
2025-02-19 13:18:37 +01:00
committed by GitHub
parent c9a348dd2c
commit 1ae733a7d1
5 changed files with 36 additions and 2 deletions

View File

@ -159,6 +159,13 @@ impl OpChainSpecBuilder {
self
}
/// Enable Interop at genesis
pub fn interop_activated(mut self) -> Self {
self = self.isthmus_activated();
self.inner = self.inner.with_fork(OpHardfork::Interop, ForkCondition::Timestamp(0));
self
}
/// Build the resulting [`OpChainSpec`].
///
/// # Panics
@ -329,6 +336,7 @@ impl From<Genesis> for OpChainSpec {
(OpHardfork::Granite.boxed(), genesis_info.granite_time),
(OpHardfork::Holocene.boxed(), genesis_info.holocene_time),
(OpHardfork::Isthmus.boxed(), genesis_info.isthmus_time),
// (OpHardfork::Interop.boxed(), genesis_info.interop_time),
];
let mut time_hardforks = time_hardfork_opts
@ -982,6 +990,7 @@ mod tests {
OpHardfork::Granite.boxed(),
OpHardfork::Holocene.boxed(),
// OpHardfork::Isthmus.boxed(),
// OpHardfork::Interop.boxed(),
];
for (expected, actual) in expected_hardforks.iter().zip(hardforks.iter()) {