From 329580438a8e8aac8889964e262b6c976e873a46 Mon Sep 17 00:00:00 2001 From: Dan Brownstein Date: Thu, 9 Nov 2023 09:19:03 +0200 Subject: [PATCH] feat: add tx and event commitments --- src/block.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/block.rs b/src/block.rs index f4618a59..5dbea57a 100644 --- a/src/block.rs +++ b/src/block.rs @@ -29,7 +29,10 @@ pub struct BlockHeader { pub state_root: GlobalRoot, pub sequencer: ContractAddress, pub timestamp: BlockTimestamp, - // TODO: add missing commitments. + pub transaction_count: usize, + pub transaction_commitment: StarkHash, + pub event_count: usize, + pub event_commitment: StarkHash, } /// The [transactions](`crate::transaction::Transaction`) and their