From 7f14cd5ee2377040083eceb1927be9971d17c605 Mon Sep 17 00:00:00 2001 From: Shahak Shama Date: Sun, 30 Jun 2024 14:44:32 +0300 Subject: [PATCH] fix: make transaction and event commitments non optional --- src/block.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/block.rs b/src/block.rs index fda0b28..b84b854 100644 --- a/src/block.rs +++ b/src/block.rs @@ -66,9 +66,9 @@ pub struct BlockHeader { #[serde(skip_serializing)] pub state_diff_length: Option, #[serde(skip_serializing)] - pub transaction_commitment: Option, + pub transaction_commitment: TransactionCommitment, #[serde(skip_serializing)] - pub event_commitment: Option, + pub event_commitment: EventCommitment, #[serde(skip_serializing)] pub n_transactions: usize, #[serde(skip_serializing)]