Skip to content

Commit

Permalink
fix: make all header commitments optional (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahakShama authored Jul 2, 2024
1 parent 0e6987e commit a4d3d80
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 @@ -62,13 +62,13 @@ pub struct BlockHeader {
// TODO: Once all environments support these fields, remove the Option (make sure to
// update/resync any storage is missing the data).
#[serde(skip_serializing)]
pub state_diff_commitment: StateDiffCommitment,
pub state_diff_commitment: Option<StateDiffCommitment>,
#[serde(skip_serializing)]
pub state_diff_length: Option<usize>,
#[serde(skip_serializing)]
pub transaction_commitment: TransactionCommitment,
pub transaction_commitment: Option<TransactionCommitment>,
#[serde(skip_serializing)]
pub event_commitment: EventCommitment,
pub event_commitment: Option<EventCommitment>,
#[serde(skip_serializing)]
pub n_transactions: usize,
#[serde(skip_serializing)]
Expand Down

0 comments on commit a4d3d80

Please sign in to comment.