From 89da19e37129586fe9c0dba5d681b54256272e56 Mon Sep 17 00:00:00 2001 From: Osakpolor Obaseki Date: Wed, 31 Jul 2024 08:52:02 +0100 Subject: [PATCH] Fix typo in rust call for execution steps --- vm/rust/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/rust/src/lib.rs b/vm/rust/src/lib.rs index 07053f315d..b75fbb3c10 100644 --- a/vm/rust/src/lib.rs +++ b/vm/rust/src/lib.rs @@ -349,7 +349,7 @@ pub extern "C" fn cairoVMExecute( let actual_fee = t.transaction_receipt.fee.0.into(); let data_gas_consumed = t.transaction_receipt.da_gas.l1_data_gas.into(); - let execution_steps = t.n_steps; // todo: n_steps may not be in this object check later + let execution_steps = t.transaction_receipt.resources.vm_resources.n_steps.try_into().unwrap(); // todo: n_steps may not be in this object check later let trace = jsonrpc::new_transaction_trace(&txn_and_query_bit.txn, t, &mut txn_state);