1+ use std:: collections:: BTreeMap ;
12#[ cfg( feature = "testing" ) ]
23use std:: collections:: HashSet ;
34
@@ -97,8 +98,8 @@ pub struct SnosHintProcessor<'a, S: StateReader> {
9798 pub ( crate ) execution_helpers_manager : ExecutionHelpersManager < ' a , S > ,
9899 pub ( crate ) os_hints_config : OsHintsConfig ,
99100 pub syscall_hint_processor : SyscallHintProcessor ,
100- pub ( crate ) deprecated_compiled_classes : HashMap < ClassHash , ContractClass > ,
101- pub ( crate ) compiled_classes : HashMap < ClassHash , CasmContractClass > ,
101+ pub ( crate ) deprecated_compiled_classes : BTreeMap < ClassHash , ContractClass > ,
102+ pub ( crate ) compiled_classes : BTreeMap < ClassHash , CasmContractClass > ,
102103 pub ( crate ) state_update_pointers : Option < StateUpdatePointers > ,
103104 pub ( crate ) deprecated_syscall_hint_processor : DeprecatedSyscallHintProcessor ,
104105 builtin_hint_processor : BuiltinHintProcessor ,
@@ -121,8 +122,8 @@ impl<'a, S: StateReader> SnosHintProcessor<'a, S> {
121122 os_hints_config : OsHintsConfig ,
122123 os_block_inputs : Vec < & ' a OsBlockInput > ,
123124 cached_state_inputs : Vec < CachedStateInput > ,
124- deprecated_compiled_classes : HashMap < ClassHash , ContractClass > ,
125- compiled_classes : HashMap < ClassHash , CasmContractClass > ,
125+ deprecated_compiled_classes : BTreeMap < ClassHash , ContractClass > ,
126+ compiled_classes : BTreeMap < ClassHash , CasmContractClass > ,
126127 state_readers : Vec < S > ,
127128 syscall_hint_processor : SyscallHintProcessor ,
128129 deprecated_syscall_hint_processor : DeprecatedSyscallHintProcessor ,
@@ -289,8 +290,8 @@ impl<'a> SnosHintProcessor<'a, DictStateReader> {
289290 os_hints_config,
290291 block_inputs,
291292 state_inputs,
292- HashMap :: new ( ) , // deprecated_compiled_classes.
293- HashMap :: new ( ) , // compiled_classes.
293+ BTreeMap :: new ( ) ,
294+ BTreeMap :: new ( ) ,
294295 vec ! [ state_reader] ,
295296 syscall_handler,
296297 deprecated_syscall_handler,
0 commit comments