Skip to content

Commit

Permalink
Apply formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrigada committed Sep 17, 2024
1 parent 2b9dc44 commit 6b55ff1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions crates/cheatcodes/src/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ use foundry_evm_core::{
use foundry_zksync_compiler::{DualCompiledContract, DualCompiledContracts};
use foundry_zksync_core::{
convert::{ConvertH160, ConvertH256, ConvertRU256, ConvertU256},
get_account_code_key, get_balance_key, get_nonce_key, Call,
ZkTransactionMetadata,
get_account_code_key, get_balance_key, get_nonce_key, Call, ZkTransactionMetadata,
};
use itertools::Itertools;
use revm::{
Expand Down Expand Up @@ -1516,7 +1515,7 @@ impl Cheatcodes {
ecx: &mut EvmContext<DB>,
call: &mut CallInputs,
executor: &mut impl CheatcodesExecutor,
create2_factory_deps: Vec<Vec<u8>>,
factory_deps: Vec<Vec<u8>>,
) -> Option<CallOutcome>
where
DB: DatabaseExt,
Expand Down Expand Up @@ -1549,12 +1548,7 @@ impl Cheatcodes {
// We currently exhaust the entire gas for the call as zkEVM returns a very high amount
// of gas that OOGs revm.
let gas = Gas::new(call.gas_limit);
match foundry_zksync_core::vm::call::<_, DatabaseError>(
call,
ecx,
ccx,
create2_factory_deps,
) {
match foundry_zksync_core::vm::call::<_, DatabaseError>(call, factory_deps, ecx, ccx) {
Ok(result) => {
// append console logs from zkEVM to the current executor's LogTracer
result.logs.iter().filter_map(decode_console_log).for_each(|decoded_log| {
Expand Down
2 changes: 1 addition & 1 deletion crates/zksync/core/src/vm/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ where
/// Executes a CALL opcode on the ZK-VM.
pub fn call<DB, E>(
call: &CallInputs,
factory_deps: Vec<Vec<u8>>,
ecx: &mut EvmContext<DB>,
mut ccx: CheatcodeTracerContext,
factory_deps: Vec<Vec<u8>>,
) -> ZKVMResult<E>
where
DB: Database,
Expand Down

0 comments on commit 6b55ff1

Please sign in to comment.