From adaaabf8d38679cd8e03bfd814a1a8c4e6c38fbd Mon Sep 17 00:00:00 2001 From: Shahak Shama Date: Wed, 26 Jun 2024 08:25:55 +0300 Subject: [PATCH] fix: Make n_transactions and n_events non option --- src/block.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/block.rs b/src/block.rs index a4037db8..73552ccf 100644 --- a/src/block.rs +++ b/src/block.rs @@ -64,15 +64,15 @@ pub struct BlockHeader { #[serde(skip_serializing)] pub state_diff_commitment: Option, #[serde(skip_serializing)] - pub state_diff_length: Option, + pub state_diff_length: usize, #[serde(skip_serializing)] pub transaction_commitment: Option, #[serde(skip_serializing)] pub event_commitment: Option, #[serde(skip_serializing)] - pub n_transactions: Option, + pub n_transactions: usize, #[serde(skip_serializing)] - pub n_events: Option, + pub n_events: usize, #[serde(skip_serializing)] pub receipt_commitment: Option, pub starknet_version: StarknetVersion,