Skip to content

Commit

Permalink
chore: update estimate_casm_hash_computation_resources (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyalesokhin-starkware authored Aug 25, 2024
1 parent 1e82e3a commit 2785ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/blockifier/src/execution/contract_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,15 @@ pub fn estimate_casm_hash_computation_resources(
NestedIntList::Leaf(length) => {
// The entire contract is a single segment (old Sierra contracts).
&ExecutionResources {
n_steps: 474,
n_steps: 463,
n_memory_holes: 0,
builtin_instance_counter: HashMap::from([(BuiltinName::poseidon, 10)]),
} + &poseidon_hash_many_cost(*length)
}
NestedIntList::Node(segments) => {
// The contract code is segmented by its functions.
let mut execution_resources = ExecutionResources {
n_steps: 491,
n_steps: 480,
n_memory_holes: 0,
builtin_instance_counter: HashMap::from([(BuiltinName::poseidon, 11)]),
};
Expand Down

0 comments on commit 2785ff2

Please sign in to comment.