Skip to content

Commit 3295804

Browse files
committed
feat: add tx and event commitments
1 parent 9139ec4 commit 3295804

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/block.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ pub struct BlockHeader {
2929
pub state_root: GlobalRoot,
3030
pub sequencer: ContractAddress,
3131
pub timestamp: BlockTimestamp,
32-
// TODO: add missing commitments.
32+
pub transaction_count: usize,
33+
pub transaction_commitment: StarkHash,
34+
pub event_count: usize,
35+
pub event_commitment: StarkHash,
3336
}
3437

3538
/// The [transactions](`crate::transaction::Transaction`) and their

0 commit comments

Comments
 (0)