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 adaaabf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ pub struct BlockHeader {
#[serde(skip_serializing)]
pub state_diff_commitment: Option<StateDiffCommitment>,
#[serde(skip_serializing)]
pub state_diff_length: Option<usize>,
pub state_diff_length: usize,
#[serde(skip_serializing)]
pub transaction_commitment: Option<TransactionCommitment>,
#[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 adaaabf

Please sign in to comment.