From a4d3d80809dfee5deea1c7d9c3799ee7d17e6ae3 Mon Sep 17 00:00:00 2001 From: ShahakShama <70578257+ShahakShama@users.noreply.github.com> Date: Tue, 2 Jul 2024 09:33:16 +0300 Subject: [PATCH] fix: make all header commitments optional (#291) --- 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)]