Skip to content

Commit

Permalink
fix(blockifier): Native can have CairoSteps mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoni-Starkware committed Nov 25, 2024
1 parent aa0115b commit 7df6ab8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/blockifier/src/execution/contract_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ impl RunnableContractClass {
Self::V0(_) => TrackedResource::CairoSteps,
Self::V1(contract_class) => contract_class.tracked_resource(min_sierra_version),
#[cfg(feature = "cairo_native")]
Self::V1Native(_) => TrackedResource::SierraGas,
Self::V1Native(contract_class) => {
contract_class.casm().tracked_resource(min_sierra_version)
}
},
GasVectorComputationMode::NoL2Gas => TrackedResource::CairoSteps,
}
Expand Down

0 comments on commit 7df6ab8

Please sign in to comment.