From c304c516f6734d63db70d759ed4c3093860da9dd Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Thu, 10 Oct 2024 11:38:24 -0400 Subject: [PATCH] fix: missing Cairo Native case in syscall test --- .../src/execution/syscalls/syscall_tests/call_contract.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/blockifier/src/execution/syscalls/syscall_tests/call_contract.rs b/crates/blockifier/src/execution/syscalls/syscall_tests/call_contract.rs index 08add6449a..31cd932743 100644 --- a/crates/blockifier/src/execution/syscalls/syscall_tests/call_contract.rs +++ b/crates/blockifier/src/execution/syscalls/syscall_tests/call_contract.rs @@ -125,12 +125,15 @@ fn test_track_resources( let execution = entry_point_call.execute_directly(&mut state).unwrap(); let expected_outer_resource = match outer_version { CairoVersion::Cairo0 => TrackedResource::CairoSteps, - CairoVersion::Cairo1 => TrackedResource::SierraGas, + CairoVersion::Cairo1 | CairoVersion::Native => TrackedResource::SierraGas, }; assert_eq!(execution.tracked_resource, expected_outer_resource); let expected_inner_resource = match (outer_version, inner_version) { - (CairoVersion::Cairo1, CairoVersion::Cairo1) => TrackedResource::SierraGas, + ( + CairoVersion::Cairo1 | CairoVersion::Native, + CairoVersion::Cairo1 | CairoVersion::Native, + ) => TrackedResource::SierraGas, _ => TrackedResource::CairoSteps, }; assert_eq!(execution.inner_calls.first().unwrap().tracked_resource, expected_inner_resource);