From 06552a82f7fd6ff375626dfba9d7a8f62ea39556 Mon Sep 17 00:00:00 2001 From: Dori Medini Date: Wed, 28 Jun 2023 15:01:14 +0300 Subject: [PATCH] Fix big in RunResources propagation Signed-off-by: Dori Medini --- .../src/execution/deprecated_syscalls/hint_processor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/blockifier/src/execution/deprecated_syscalls/hint_processor.rs b/crates/blockifier/src/execution/deprecated_syscalls/hint_processor.rs index edb87d4955..12c19ed0a2 100644 --- a/crates/blockifier/src/execution/deprecated_syscalls/hint_processor.rs +++ b/crates/blockifier/src/execution/deprecated_syscalls/hint_processor.rs @@ -335,7 +335,9 @@ impl HintProcessor for DeprecatedSyscallHintProcessor<'_> { self.context.vm_run_resources = run_resources.clone(); let hint = hint_data.downcast_ref::().ok_or(HintError::WrongHintData)?; if hint_code::SYSCALL_HINTS.contains(hint.code.as_str()) { - return self.execute_next_syscall(vm, &hint.ids_data, &hint.ap_tracking); + let result = self.execute_next_syscall(vm, &hint.ids_data, &hint.ap_tracking); + *run_resources = self.context.vm_run_resources.clone(); + return result; } let result = self.builtin_hint_processor.execute_hint(