Skip to content

Commit

Permalink
fix: missing Cairo Native case in syscall test
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-pino committed Oct 14, 2024
1 parent 11a1a5e commit c304c51
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c304c51

Please sign in to comment.