From e905a9df59ebaf5757c516dbab9f20de1951631e 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 | 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,