From d00de0825ae3c11c09d1de958275584ab90020d9 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 27 Apr 2024 10:02:26 +0200 Subject: [PATCH] add missing default --- crates/rpc-types/src/transaction/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/rpc-types/src/transaction/mod.rs b/crates/rpc-types/src/transaction/mod.rs index 290a98f3..d0b54253 100644 --- a/crates/rpc-types/src/transaction/mod.rs +++ b/crates/rpc-types/src/transaction/mod.rs @@ -16,16 +16,16 @@ pub struct Transaction { #[serde(flatten)] pub inner: alloy_rpc_types::Transaction, /// The ETH value to mint on L2 - #[serde(rename = "mint", skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "Option::is_none")] pub mint: Option, /// Hash that uniquely identifies the source of the deposit. - #[serde(rename = "sourceHash", skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "Option::is_none")] pub source_hash: Option, /// Field indicating whether the transaction is a system transaction, and therefore /// exempt from the L2 gas limit. - #[serde(rename = "isSystemTx", skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "Option::is_none")] pub is_system_tx: Option, /// Deposit receipt version for deposit transactions post-canyon - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "Option::is_none")] pub deposit_receipt_version: Option, }