Skip to content

Commit

Permalink
missing transparent attr on generated types
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Oct 19, 2023
1 parent c84f44e commit 3801c0c
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions ethereum-consensus/src/types/beacon_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crate::{
Fork as Version,
};
#[derive(Debug, Clone, PartialEq, Eq, Merkleized, serde::Serialize)]
#[ssz(transparent)]
#[serde(untagged)]
pub enum BeaconBlock<
const MAX_PROPOSER_SLASHINGS: usize,
Expand Down
1 change: 1 addition & 0 deletions ethereum-consensus/src/types/beacon_block_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use crate::{
Fork as Version,
};
#[derive(Debug, Clone, PartialEq, Eq, Merkleized, serde::Serialize)]
#[ssz(transparent)]
#[serde(untagged)]
pub enum BeaconBlockBody<
const MAX_PROPOSER_SLASHINGS: usize,
Expand Down
1 change: 1 addition & 0 deletions ethereum-consensus/src/types/beacon_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use crate::{
Fork as Version,
};
#[derive(Debug, Clone, PartialEq, Eq, Merkleized, serde::Serialize)]
#[ssz(transparent)]
#[serde(untagged)]
pub enum BeaconState<
const SLOTS_PER_HISTORICAL_ROOT: usize,
Expand Down
1 change: 1 addition & 0 deletions ethereum-consensus/src/types/blinded_beacon_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use crate::{
Fork as Version,
};
#[derive(Debug, Clone, PartialEq, Eq, Merkleized, serde::Serialize)]
#[ssz(transparent)]
#[serde(untagged)]
pub enum BlindedBeaconBlock<
const MAX_PROPOSER_SLASHINGS: usize,
Expand Down
1 change: 1 addition & 0 deletions ethereum-consensus/src/types/blinded_beacon_block_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use crate::{
Fork as Version,
};
#[derive(Debug, Clone, PartialEq, Eq, Merkleized, serde::Serialize)]
#[ssz(transparent)]
#[serde(untagged)]
pub enum BlindedBeaconBlockBody<
const MAX_PROPOSER_SLASHINGS: usize,
Expand Down
1 change: 1 addition & 0 deletions ethereum-consensus/src/types/execution_payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use crate::{
Fork as Version,
};
#[derive(Debug, Clone, PartialEq, Eq, Merkleized, serde::Serialize)]
#[ssz(transparent)]
#[serde(untagged)]
pub enum ExecutionPayload<
const BYTES_PER_LOGS_BLOOM: usize,
Expand Down
1 change: 1 addition & 0 deletions ethereum-consensus/src/types/execution_payload_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use crate::{
Fork as Version,
};
#[derive(Debug, Clone, PartialEq, Eq, Merkleized, serde::Serialize)]
#[ssz(transparent)]
#[serde(untagged)]
pub enum ExecutionPayloadHeader<
const BYTES_PER_LOGS_BLOOM: usize,
Expand Down
1 change: 1 addition & 0 deletions ethereum-consensus/src/types/signed_beacon_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crate::{
Fork as Version,
};
#[derive(Debug, Clone, PartialEq, Eq, Merkleized, serde::Serialize)]
#[ssz(transparent)]
#[serde(untagged)]
pub enum SignedBeaconBlock<
const MAX_PROPOSER_SLASHINGS: usize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use crate::{
Fork as Version,
};
#[derive(Debug, Clone, PartialEq, Eq, Merkleized, serde::Serialize)]
#[ssz(transparent)]
#[serde(untagged)]
pub enum SignedBlindedBeaconBlock<
const MAX_PROPOSER_SLASHINGS: usize,
Expand Down
1 change: 1 addition & 0 deletions spec-gen/src/type_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ fn derive_type_defn(target_type: &Type, merge_type: &MergeType) -> (Item, Generi
.collect::<Vec<syn::Variant>>();
let enum_defn = parse_quote! {
#[derive(Debug, Clone, PartialEq, Eq, Merkleized, serde::Serialize)]
#[ssz(transparent)]
#[serde(untagged)]
pub enum #type_name #generics {
#(#variant_defns),*
Expand Down

0 comments on commit 3801c0c

Please sign in to comment.