Skip to content

Commit c416662

Browse files
authored
apollo_committer_types: update commit block fields (#10567)
1 parent e7bb1ee commit c416662

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
use serde::{Deserialize, Serialize};
2-
use starknet_api::hash::StateRoots;
2+
use starknet_api::block::BlockNumber;
3+
use starknet_api::core::{GlobalRoot, StateDiffCommitment};
34
use starknet_committer::block_committer::input::StateDiff;
45

56
#[derive(Clone, Debug, Serialize, Deserialize)]
67
pub struct CommitBlockRequest {
78
state_diff: StateDiff,
8-
prev_state_roots: StateRoots,
9+
state_diff_commitment: StateDiffCommitment,
10+
height: BlockNumber,
911
}
1012

1113
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
1214
pub struct CommitBlockResponse {
13-
new_state_roots: StateRoots,
15+
state_root: GlobalRoot,
1416
}

0 commit comments

Comments
 (0)