Skip to content

Commit

Permalink
fix: Make n_transactions and n_events non option
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahakShama committed Jun 26, 2024
1 parent 5565e52 commit 1652120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ pub struct BlockHeader {
#[serde(skip_serializing)]
pub event_commitment: Option<EventCommitment>,
#[serde(skip_serializing)]
pub n_transactions: Option<usize>,
pub n_transactions: usize,
#[serde(skip_serializing)]
pub n_events: Option<usize>,
pub n_events: usize,
#[serde(skip_serializing)]
pub receipt_commitment: Option<ReceiptCommitment>,
pub starknet_version: StarknetVersion,
Expand Down

0 comments on commit 1652120

Please sign in to comment.