From e6f7ef1cc4a306d4798cde053d3eb99ee1821897 Mon Sep 17 00:00:00 2001 From: john xu Date: Fri, 3 Jan 2025 10:55:34 +0800 Subject: [PATCH] Add serde deserialization for transactions with null default --- crates/rpc-types-engine/src/payload.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/rpc-types-engine/src/payload.rs b/crates/rpc-types-engine/src/payload.rs index 9bd3973450f..ee3d0bdfd55 100644 --- a/crates/rpc-types-engine/src/payload.rs +++ b/crates/rpc-types-engine/src/payload.rs @@ -188,6 +188,7 @@ pub struct ExecutionPayloadV1 { /// The block hash of the block. pub block_hash: B256, /// The transactions of the block. + #[cfg_attr(feature = "serde", serde(deserialize_with = "alloy_serde::null_as_default"))] pub transactions: Vec, }