From 85214a8cee5520983dec81da028b9821c3e0e92f 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 --- Cargo.toml | 2 +- src/block.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bfd66a81..faccebcb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "starknet_api" -version = "0.6.0-rc1" +version = "0.6.0-rc2" edition = "2021" repository = "https://github.com/starkware-libs/starknet-api" license = "Apache-2.0" 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