Merge pull request #3826 from ethDreamer/capella

Fixed spec serialization bug
This commit is contained in:
ethDreamer 2022-12-21 11:43:10 -06:00 committed by GitHub
commit bfce794777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ pub struct ConfigAndPreset {
#[serde(flatten)] #[serde(flatten)]
pub bellatrix_preset: BellatrixPreset, pub bellatrix_preset: BellatrixPreset,
#[superstruct(only(Capella))] #[superstruct(only(Capella))]
#[serde(flatten)]
pub capella_preset: CapellaPreset, pub capella_preset: CapellaPreset,
/// The `extra_fields` map allows us to gracefully decode fields intended for future hard forks. /// The `extra_fields` map allows us to gracefully decode fields intended for future hard forks.
#[serde(flatten)] #[serde(flatten)]