diff --git a/circuits/src/builtins/bitwise/bitwise_stark.rs b/circuits/src/builtins/bitwise/bitwise_stark.rs index 5296de4d..b8fe2e5c 100644 --- a/circuits/src/builtins/bitwise/bitwise_stark.rs +++ b/circuits/src/builtins/bitwise/bitwise_stark.rs @@ -418,7 +418,7 @@ mod tests { use crate::stark::stark::Stark; use crate::stark::vars::StarkEvaluationVars; use assembler::encoder::encode_asm_from_json_file; - + use core::program::Program; use core::state::state_storage::StateStorage; use core::types::account::Address; diff --git a/circuits/src/generation/ctl_test/debug_trace_print.rs b/circuits/src/generation/ctl_test/debug_trace_print.rs index 41307fea..1e234034 100644 --- a/circuits/src/generation/ctl_test/debug_trace_print.rs +++ b/circuits/src/generation/ctl_test/debug_trace_print.rs @@ -12,7 +12,11 @@ use std::{ use assembler::encoder::encode_asm_from_json_file; use core::{ - crypto::{hash::Hasher, ZkHasher}, merkle_tree::log::{StorageLog, StorageLogKind, WitnessStorageLog}, state::state_storage::StateStorage, types::merkle_tree::{encode_addr, tree_key_default}, vm::transaction::init_tx_context_mock + crypto::{hash::Hasher, ZkHasher}, + merkle_tree::log::{StorageLog, StorageLogKind, WitnessStorageLog}, + state::state_storage::StateStorage, + types::merkle_tree::{encode_addr, tree_key_default}, + vm::transaction::init_tx_context_mock, }; use executor::{ load_tx::init_tape, @@ -248,7 +252,11 @@ pub fn get_exec_trace( program.prophets = prophets; // FIXME: account tree is not used, merkle root cannot update. - let res = process.execute(&mut program, &StateStorage::new_test(), &mut BatchCacheManager::default()); + let res = process.execute( + &mut program, + &StateStorage::new_test(), + &mut BatchCacheManager::default(), + ); match res { Ok(_) => {} Err(e) => { diff --git a/circuits/src/stark/ola_stark.rs b/circuits/src/stark/ola_stark.rs index 836f3fff..b40ee100 100644 --- a/circuits/src/stark/ola_stark.rs +++ b/circuits/src/stark/ola_stark.rs @@ -916,7 +916,11 @@ mod tests { program.prophets = prophets; // FIXME: account tree is not used, merkle root cannot update. - let res = process.execute(&mut program, &StateStorage::new_test(), &mut BatchCacheManager::default()); + let res = process.execute( + &mut program, + &StateStorage::new_test(), + &mut BatchCacheManager::default(), + ); match res { Ok(_) => {} Err(e) => { diff --git a/circuits/src/test_utils.rs b/circuits/src/test_utils.rs index 533eb256..8609d0b8 100644 --- a/circuits/src/test_utils.rs +++ b/circuits/src/test_utils.rs @@ -125,7 +125,11 @@ pub fn test_stark_with_asm_path( program.prophets = prophets; // FIXME: account tree is not used, merkle root cannot update. - let res = process.execute(&mut program, &StateStorage::new_test(), &mut BatchCacheManager::default()); + let res = process.execute( + &mut program, + &StateStorage::new_test(), + &mut BatchCacheManager::default(), + ); match res { Ok(_) => {} Err(e) => { @@ -309,7 +313,11 @@ pub fn simple_test_stark( }); // FIXME: account tree is not used, merkle root cannot update. - let res = process.execute(&mut program, &StateStorage::new_test(), &mut BatchCacheManager::default()); + let res = process.execute( + &mut program, + &StateStorage::new_test(), + &mut BatchCacheManager::default(), + ); match res { Ok(_) => {} Err(e) => { diff --git a/mini-ola/src/subcommands/mod.rs b/mini-ola/src/subcommands/mod.rs index 8ddb27c5..0eca8c2c 100644 --- a/mini-ola/src/subcommands/mod.rs +++ b/mini-ola/src/subcommands/mod.rs @@ -1,4 +1,4 @@ +pub mod call; pub mod deploy; pub mod invoke; pub mod parser; -pub mod call; \ No newline at end of file diff --git a/mini-ola/src/subcommands/parser.rs b/mini-ola/src/subcommands/parser.rs index b5c65734..b5ddd94c 100644 --- a/mini-ola/src/subcommands/parser.rs +++ b/mini-ola/src/subcommands/parser.rs @@ -1,7 +1,7 @@ use anyhow::{bail, Ok, Result}; use ola_lang_abi::{FixedArray4, Param, Type, Value}; -use crate::utils::{h256_from_hex_be, h256_to_u64_array, OLA_FIELD_ORDER, u64_array_to_h256}; +use crate::utils::{h256_from_hex_be, h256_to_u64_array, u64_array_to_h256, OLA_FIELD_ORDER}; pub struct ToValue; impl ToValue { diff --git a/mini-ola/src/utils.rs b/mini-ola/src/utils.rs index b40eb86c..3cfdfffe 100644 --- a/mini-ola/src/utils.rs +++ b/mini-ola/src/utils.rs @@ -132,4 +132,4 @@ pub fn address_from_hex_be(value: &str) -> anyhow::Result<[u8; 32]> { anyhow::bail!("Key out of range."); }; Ok(parsed_bytes) -} \ No newline at end of file +} diff --git a/zk-vm/src/lib.rs b/zk-vm/src/lib.rs index c83add42..0365253a 100644 --- a/zk-vm/src/lib.rs +++ b/zk-vm/src/lib.rs @@ -33,8 +33,8 @@ mod config; mod preexecutor; mod vm_manager; -pub use vm_manager::*; pub use preexecutor::*; +pub use vm_manager::*; #[cfg(test)] pub mod test;