Skip to content

Commit 3c5c095

Browse files
authored
apollo_committer_types: ThinStateDiff type in the request (#10669)
1 parent 9f4cc86 commit 3c5c095

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/apollo_committer_types/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ async-trait.workspace = true
1616
mockall = { workspace = true, optional = true }
1717
serde.workspace = true
1818
starknet_api.workspace = true
19-
starknet_committer.workspace = true
2019
strum.workspace = true
2120
strum_macros.workspace = true
2221
thiserror.workspace = true

crates/apollo_committer_types/src/committer_types.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use serde::{Deserialize, Serialize};
22
use starknet_api::block::BlockNumber;
33
use starknet_api::core::{GlobalRoot, StateDiffCommitment};
4-
use starknet_committer::block_committer::input::StateDiff;
4+
use starknet_api::state::ThinStateDiff;
55

66
#[derive(Clone, Debug, Serialize, Deserialize)]
77
pub struct CommitBlockRequest {
8-
state_diff: StateDiff,
8+
state_diff: ThinStateDiff,
99
state_diff_commitment: StateDiffCommitment,
1010
height: BlockNumber,
1111
}
@@ -18,7 +18,7 @@ pub struct CommitBlockResponse {
1818
#[derive(Clone, Debug, Serialize, Deserialize)]
1919
pub struct RevertBlockRequest {
2020
// A synthetic state diff that undoes the state diff of the given height.
21-
reversed_state_diff: StateDiff,
21+
reversed_state_diff: ThinStateDiff,
2222
height: BlockNumber,
2323
}
2424

0 commit comments

Comments
 (0)