Skip to content

Commit

Permalink
Change initial dummy gas value. (#7159)
Browse files Browse the repository at this point in the history
  • Loading branch information
orizi authored Jan 27, 2025

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
1 parent f02c8b8 commit c2d5b8a
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/cairo-lang-executable/src/compile_test_data/basic
Original file line number Diff line number Diff line change
@@ -489,7 +489,7 @@ ap += 2;
[ap + -1] = [[ap + -3] + 2];
[ap + 0] = [fp + -3], ap++;
[ap + 0] = [ap + -4] + 3, ap++;
[ap + 0] = 170141183460469231731687303715884105727, ap++;
[ap + 0] = 9223372036854775807, ap++;
%{ raise NotImplementedError("memory[ap + 0].. = params[0])") %}
[ap + 2] = [fp + -4] + 1, ap++;
[ap + 2] = [ap + 1], ap++;
4 changes: 2 additions & 2 deletions crates/cairo-lang-runnable-utils/src/builder.rs
Original file line number Diff line number Diff line change
@@ -397,9 +397,9 @@ pub fn create_entry_code_from_params(
param_index += 1;
unallocated_count += ty_size;
} else if generic_ty == &GasBuiltinType::ID {
// Setting gas to be far from u128 boundaries.
// Setting gas to be far from u64 boundaries.
casm_build_extend! {ctx,
const max_gas = i128::MAX;
const max_gas = i64::MAX;
tempvar gas = max_gas;
};
}

0 comments on commit c2d5b8a

Please sign in to comment.