Skip to content

Commit

Permalink
fix: Make n_transactions and n_events non option (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahakShama authored Jun 30, 2024
1 parent 61467b1 commit f76fe54
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 f76fe54

Please sign in to comment.