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(
19
19
timestamp : u64 ,
20
20
) -> revm_primitives:: SpecId {
21
21
if chain_spec. fork ( OpHardfork :: Isthmus ) . active_at_timestamp ( timestamp) {
22
- todo ! ( )
22
+ revm_primitives :: ISTHMUS
23
23
} else if chain_spec. fork ( OpHardfork :: Holocene ) . active_at_timestamp ( timestamp) {
24
24
revm_primitives:: HOLOCENE
25
25
} else if chain_spec. fork ( OpHardfork :: Granite ) . active_at_timestamp ( timestamp) {
@@ -50,6 +50,10 @@ mod tests {
50
50
let cs = ChainSpecBuilder :: mainnet ( ) . chain ( reth_chainspec:: Chain :: from_id ( 10 ) ) . into ( ) ;
51
51
f ( cs) . build ( )
52
52
}
53
+ assert_eq ! (
54
+ revm_spec_by_timestamp_after_bedrock( & op_cs( |cs| cs. isthmus_activated( ) ) , 0 ) ,
55
+ revm_primitives:: ISTHMUS
56
+ ) ;
53
57
assert_eq ! (
54
58
revm_spec_by_timestamp_after_bedrock( & op_cs( |cs| cs. holocene_activated( ) ) , 0 ) ,
55
59
revm_primitives:: HOLOCENE
@@ -87,6 +91,10 @@ mod tests {
87
91
let cs = ChainSpecBuilder :: mainnet ( ) . chain ( reth_chainspec:: Chain :: from_id ( 10 ) ) . into ( ) ;
88
92
f ( cs) . build ( )
89
93
}
94
+ assert_eq ! (
95
+ revm_spec( & op_cs( |cs| cs. isthmus_activated( ) ) , & Default :: default ( ) ) ,
96
+ revm_primitives:: ISTHMUS
97
+ ) ;
90
98
assert_eq ! (
91
99
revm_spec( & op_cs( |cs| cs. holocene_activated( ) ) , & Default :: default ( ) ) ,
92
100
revm_primitives:: HOLOCENE
You can’t perform that action at this time.
0 commit comments