@@ -58,7 +58,7 @@ use starknet_committer::patricia_merkle_tree::types::{
5858} ;
5959use starknet_os:: hints:: hint_implementation:: deprecated_compiled_class:: class_hash:: compute_deprecated_class_hash;
6060use starknet_os:: hints:: vars:: Const ;
61- use starknet_os:: io:: os_input:: CommitmentInfo ;
61+ use starknet_os:: io:: os_input:: { CommitmentInfo , StateCommitmentInfos } ;
6262use starknet_patricia:: patricia_merkle_tree:: node_data:: inner_node:: flatten_preimages;
6363use starknet_patricia:: patricia_merkle_tree:: types:: { NodeIndex , SortedLeafIndices , SubTreeHeight } ;
6464use starknet_patricia_storage:: db_object:: EmptyKeyContext ;
@@ -217,19 +217,13 @@ pub(crate) fn create_declare_tx(
217217 AccountTransaction :: Declare ( tx)
218218}
219219
220- pub ( crate ) struct CommitmentInfos {
221- pub ( crate ) contracts_trie_commitment_info : CommitmentInfo ,
222- pub ( crate ) classes_trie_commitment_info : CommitmentInfo ,
223- pub ( crate ) storage_tries_commitment_infos : HashMap < ContractAddress , CommitmentInfo > ,
224- }
225-
226220/// Creates the commitment infos and the cached state input for the OS.
227221pub ( crate ) async fn create_cached_state_input_and_commitment_infos (
228222 previous_state_roots : & StateRoots ,
229223 new_state_roots : & StateRoots ,
230224 commitments : & mut MapStorage ,
231225 extended_state_diff : & StateMaps ,
232- ) -> ( StateMaps , CommitmentInfos ) {
226+ ) -> ( StateMaps , StateCommitmentInfos ) {
233227 // TODO(Nimrod): Gather the keys from the state selector similarly to python.
234228 let ( previous_contract_states, new_storage_roots) = get_previous_states_and_new_storage_roots (
235229 extended_state_diff. get_contract_addresses ( ) . into_iter ( ) ,
@@ -358,7 +352,7 @@ pub(crate) async fn create_cached_state_input_and_commitment_infos(
358352
359353 (
360354 state_maps,
361- CommitmentInfos {
355+ StateCommitmentInfos {
362356 contracts_trie_commitment_info,
363357 classes_trie_commitment_info,
364358 storage_tries_commitment_infos,
0 commit comments