Skip to content

Commit

Permalink
Fix CI (#814)
Browse files Browse the repository at this point in the history
* debug

* change gas usize to gas u128

* clippy

* fix usize problem

* fix usize problem
  • Loading branch information
FrancoGiachetta authored Sep 26, 2024
1 parent a787815 commit d124199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/cairo-native-run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct Args {
allow_warnings: bool,
/// In cases where gas is available, the amount of provided gas.
#[arg(long)]
available_gas: Option<usize>,
available_gas: Option<u128>,
/// Run with JIT or AOT (compiled).
#[arg(long, value_enum, default_value_t = RunMode::Jit)]
run_mode: RunMode,
Expand Down Expand Up @@ -107,7 +107,7 @@ fn main() -> anyhow::Result<()> {
let func = find_function(&sierra_program, "::main")?;

let initial_gas = gas_metadata
.get_initial_available_gas(&func.id, args.available_gas.map(|x| x.try_into().unwrap()))
.get_initial_available_gas(&func.id, args.available_gas)
.with_context(|| "not enough gas to run")?;

let mut syscall_handler = StubSyscallHandler::default();
Expand Down

0 comments on commit d124199

Please sign in to comment.