From a02f7c247dc807f6800f37c5683b91a85df65f1a Mon Sep 17 00:00:00 2001 From: Gregory Edison Date: Mon, 13 May 2024 10:34:09 +0200 Subject: [PATCH] cleaning --- src/cache/aot.rs | 3 +-- src/executor/aot.rs | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cache/aot.rs b/src/cache/aot.rs index 175fdd77f..f1e966a6e 100644 --- a/src/cache/aot.rs +++ b/src/cache/aot.rs @@ -83,10 +83,9 @@ where #[cfg(test)] mod tests { - use starknet_types_core::felt::Felt; - use super::*; use crate::{utils::test::load_cairo, values::JitValue}; + use starknet_types_core::felt::Felt; #[test] fn test_aot_compile_and_insert() { diff --git a/src/executor/aot.rs b/src/executor/aot.rs index 395ac55ab..d5c640aa0 100644 --- a/src/executor/aot.rs +++ b/src/executor/aot.rs @@ -191,9 +191,7 @@ mod tests { #[starknet::contract] mod contract { #[storage] - struct Storage { - name: felt252, - } + struct Storage {} #[abi(embed_v0)] impl ISimpleStorageImpl of super::ISimpleStorage { @@ -214,6 +212,7 @@ mod tests { .expect("failed to compile context"); let executor = AotNativeExecutor::from_native_module(module, OptLevel::default()); + // The first function in the program is `run_test`. let entrypoint_function_id = &program.funcs.first().expect("should have a function").id; let result = executor @@ -231,6 +230,7 @@ mod tests { .expect("failed to compile context"); let executor = AotNativeExecutor::from_native_module(module, OptLevel::default()); + // The second function in the program is `get_block_hash`. let entrypoint_function_id = &program.funcs.get(1).expect("should have a function").id; let mut syscall_handler = TestSyscallHandler; @@ -265,6 +265,7 @@ mod tests { .expect("failed to compile context"); let executor = AotNativeExecutor::from_native_module(module, OptLevel::default()); + // The last function in the program is the `get` wrapper function. let entrypoint_function_id = &starknet_program .funcs .last()