From 09de0e9bef0e47e896e2fc18e5f0de3688d33def Mon Sep 17 00:00:00 2001 From: Shahak Shama Date: Tue, 2 Jul 2024 07:23:59 +0300 Subject: [PATCH] fix: make all header commitments optional --- src/block.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/block.rs b/src/block.rs index b84b854..e38aa49 100644 --- a/src/block.rs +++ b/src/block.rs @@ -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, #[serde(skip_serializing)] pub state_diff_length: Option, #[serde(skip_serializing)] - pub transaction_commitment: TransactionCommitment, + pub transaction_commitment: Option, #[serde(skip_serializing)] - pub event_commitment: EventCommitment, + pub event_commitment: Option, #[serde(skip_serializing)] pub n_transactions: usize, #[serde(skip_serializing)]