Skip to content

Commit

Permalink
feat: derive serde for ExecutionPayloadSidecar (#1535)
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg authored Oct 20, 2024
1 parent 0cee57f commit aa0ef94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/rpc-types-engine/src/cancun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pub struct CancunPayloadFields {

/// A container type for [CancunPayloadFields] that may or may not be present.
#[derive(Clone, Debug, Default, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct MaybeCancunPayloadFields {
fields: Option<CancunPayloadFields>,
}
Expand Down
1 change: 1 addition & 0 deletions crates/rpc-types-engine/src/sidecar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use alloy_primitives::B256;
/// Container type for all available additional `newPayload` request parameters that are not present
/// in the `ExecutionPayload` object itself.
#[derive(Debug, Clone, Default)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct ExecutionPayloadSidecar {
/// Cancun request params introduced in `engine_newPayloadV3` that are not present in the
/// `ExecutionPayload`.
Expand Down

0 comments on commit aa0ef94

Please sign in to comment.