From 61a3ba9dba0ac8fd782b40435e72389d64a6dc40 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 7acba35..7dae2cc 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: Option, #[serde(skip_serializing)]