File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ pub fn revm_spec_by_timestamp_after_bedrock(
1919 timestamp : u64 ,
2020) -> revm_primitives:: SpecId {
2121 if chain_spec. fork ( OpHardfork :: Isthmus ) . active_at_timestamp ( timestamp) {
22- todo ! ( )
22+ revm_primitives :: ISTHMUS
2323 } else if chain_spec. fork ( OpHardfork :: Holocene ) . active_at_timestamp ( timestamp) {
2424 revm_primitives:: HOLOCENE
2525 } else if chain_spec. fork ( OpHardfork :: Granite ) . active_at_timestamp ( timestamp) {
@@ -50,6 +50,10 @@ mod tests {
5050 let cs = ChainSpecBuilder :: mainnet ( ) . chain ( reth_chainspec:: Chain :: from_id ( 10 ) ) . into ( ) ;
5151 f ( cs) . build ( )
5252 }
53+ assert_eq ! (
54+ revm_spec_by_timestamp_after_bedrock( & op_cs( |cs| cs. isthmus_activated( ) ) , 0 ) ,
55+ revm_primitives:: ISTHMUS
56+ ) ;
5357 assert_eq ! (
5458 revm_spec_by_timestamp_after_bedrock( & op_cs( |cs| cs. holocene_activated( ) ) , 0 ) ,
5559 revm_primitives:: HOLOCENE
@@ -87,6 +91,10 @@ mod tests {
8791 let cs = ChainSpecBuilder :: mainnet ( ) . chain ( reth_chainspec:: Chain :: from_id ( 10 ) ) . into ( ) ;
8892 f ( cs) . build ( )
8993 }
94+ assert_eq ! (
95+ revm_spec( & op_cs( |cs| cs. isthmus_activated( ) ) , & Default :: default ( ) ) ,
96+ revm_primitives:: ISTHMUS
97+ ) ;
9098 assert_eq ! (
9199 revm_spec( & op_cs( |cs| cs. holocene_activated( ) ) , & Default :: default ( ) ) ,
92100 revm_primitives:: HOLOCENE
You can’t perform that action at this time.
0 commit comments