Skip to content

Commit

Permalink
feat: add tx and event commitments
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-starkware committed Nov 9, 2023
1 parent 9139ec4 commit 85214a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 4 additions & 1 deletion src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85214a8

Please sign in to comment.