From f76fe54efa11d4d4933a3c192156327251d9516c Mon Sep 17 00:00:00 2001 From: ShahakShama <70578257+ShahakShama@users.noreply.github.com> Date: Sun, 30 Jun 2024 08:24:34 +0300 Subject: [PATCH] fix: Make n_transactions and n_events non option (#282) --- src/block.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/block.rs b/src/block.rs index 7acba35..fda0b28 100644 --- a/src/block.rs +++ b/src/block.rs @@ -70,9 +70,9 @@ pub struct BlockHeader { #[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,