From 65a7a05a6256a33e1977af8c2d0cf30b24764da1 Mon Sep 17 00:00:00 2001 From: Nisheeth Barthwal Date: Tue, 13 Aug 2024 17:50:41 +0200 Subject: [PATCH] Revert "use factory deps to retrieeve bytecodes in inspect" This reverts commit 5e2ba9af51180e10cd07f587f58c8af66ccf2c0e. --- crates/zksync/core/src/vm/inspect.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/zksync/core/src/vm/inspect.rs b/crates/zksync/core/src/vm/inspect.rs index 31cc670f2..f433c2731 100644 --- a/crates/zksync/core/src/vm/inspect.rs +++ b/crates/zksync/core/src/vm/inspect.rs @@ -418,13 +418,13 @@ fn inspect_inner( formatter::print_event(event, resolve_hashes); } - let bytecodes = l2_tx - .execute - .factory_deps - .clone() + let bytecodes = vm + .get_last_tx_compressed_bytecodes() .iter() - .flatten() - .flat_map(|dep| bytecode_to_factory_dep(dep.clone()).ok()) + .map(|b| { + bytecode_to_factory_dep(b.original.clone()) + .expect("failed converting bytecode to factory dep") + }) .collect(); let modified_keys = if is_static { Default::default()