File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,19 @@ where
343
343
}
344
344
345
345
fn is_enabled_for_feature ( & self , feature_name : FeatureName ) -> bool {
346
+ // This ensures we only run the tests **once** for `Eip7594`, using the types matching the
347
+ // correct fork, e.g. `Eip7594` uses SSZ types from `Deneb` as of spec test version
348
+ // `v1.5.0-alpha.8`, therefore the `Eip7594` tests should get included when testing Deneb types.
349
+ //
350
+ // e.g. Eip7594 test vectors are executed in the first line below, but excluded in the 2nd
351
+ // line when testing the type `AttestationElectra`:
352
+ //
353
+ // ```
354
+ // SszStaticHandler::<AttestationBase<MainnetEthSpec>, MainnetEthSpec>::pre_electra().run();
355
+ // SszStaticHandler::<AttestationElectra<MainnetEthSpec>, MainnetEthSpec>::electra_only().run();
356
+ // ```
346
357
feature_name == FeatureName :: Eip7594
358
+ && self . supported_forks . contains ( & feature_name. fork_name ( ) )
347
359
}
348
360
}
349
361
You can’t perform that action at this time.
0 commit comments