From 1497321039df0f9b408f4c68001054afed0ea94c Mon Sep 17 00:00:00 2001 From: perekopskiy Date: Mon, 17 Jun 2024 17:03:11 +0300 Subject: [PATCH] Fix --- .../multivm/src/versions/vm_latest/tracers/circuits_tracer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/multivm/src/versions/vm_latest/tracers/circuits_tracer.rs b/core/lib/multivm/src/versions/vm_latest/tracers/circuits_tracer.rs index 84ff77c17baa..4d5dc0b13273 100644 --- a/core/lib/multivm/src/versions/vm_latest/tracers/circuits_tracer.rs +++ b/core/lib/multivm/src/versions/vm_latest/tracers/circuits_tracer.rs @@ -177,8 +177,8 @@ impl CircuitsTracer { .decommitted_code_hashes .history(); for (_, history_event) in &history[last_decommitment_history_entry_checked..] { - // We update cycles once per bytecode when it is inserted to `decommitted_code_hashes` first time. - if history_event.value.is_none() { + // We update cycles once per bytecode when it is actually decommitted. + if history_event.value.is_some() { let bytecode_len = state .decommittment_processor .known_bytecodes