Skip to content

Commit

Permalink
Merge pull request #6235 from ethDreamer/fix_deserialization
Browse files Browse the repository at this point in the history
Fix Deserialization Bug in `engine-api`
  • Loading branch information
ethDreamer authored Aug 6, 2024
2 parents ba28217 + 63e418a commit a3eea87
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions beacon_node/execution_layer/src/engine_api/json_structures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,13 +731,14 @@ impl From<ForkchoiceUpdatedResponse> for JsonForkchoiceUpdatedV1Response {

#[superstruct(
variants(V1, V2),
variant_attributes(derive(Clone, Debug, Serialize, Deserialize),),
variant_attributes(
derive(Clone, Debug, Serialize, Deserialize),
serde(bound = "E: EthSpec", rename_all = "camelCase"),
),
partial_getter_error(ty = "Error", expr = "Error::IncorrectStateVariant")
)]
#[derive(Clone, Debug, Serialize)]
#[serde(bound = "E: EthSpec")]
#[serde(rename_all = "camelCase")]
#[serde(untagged)]
#[serde(bound = "E: EthSpec", rename_all = "camelCase", untagged)]
pub struct JsonExecutionPayloadBody<E: EthSpec> {
#[serde(with = "ssz_types::serde_utils::list_of_hex_var_list")]
pub transactions: Transactions<E>,
Expand Down

0 comments on commit a3eea87

Please sign in to comment.