Skip to content

Commit

Permalink
fix(blockifier): native can have CairoSteps mode (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoni-Starkware authored Nov 26, 2024
1 parent 6ffc1ed commit abf5736
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 abf5736

Please sign in to comment.