Skip to content

Commit d75e50b

Browse files
committed
cheatnet: fixup clippy
1 parent abfb09d commit d75e50b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/cheatnet/src/state.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,12 +326,13 @@ pub struct EncounteredError {
326326
pub class_hash: ClassHash,
327327
}
328328

329+
type MockedFunctionKey = (EntryPointSelector, Felt);
329330
pub struct CheatnetState {
330331
pub cheated_execution_info_contracts: HashMap<ContractAddress, ExecutionInfoMock>,
331332
pub global_cheated_execution_info: ExecutionInfoMock,
332333

333334
pub mocked_functions:
334-
HashMap<ContractAddress, HashMap<(EntryPointSelector, Felt), CheatStatus<Vec<Felt>>>>,
335+
HashMap<ContractAddress, HashMap<MockedFunctionKey, CheatStatus<Vec<Felt>>>>,
335336
pub replaced_bytecode_contracts: HashMap<ContractAddress, ClassHash>,
336337
pub detected_events: Vec<Event>,
337338
pub detected_messages_to_l1: Vec<MessageToL1>,

0 commit comments

Comments
 (0)