From d12419920184cd66f06ec048a451bfba928fc499 Mon Sep 17 00:00:00 2001 From: Franco Giachetta Date: Thu, 26 Sep 2024 17:48:17 +0000 Subject: [PATCH] Fix CI (#814) * debug * change gas usize to gas u128 * clippy * fix usize problem * fix usize problem --- src/bin/cairo-native-run.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/cairo-native-run.rs b/src/bin/cairo-native-run.rs index 39a277779..8aea5d665 100644 --- a/src/bin/cairo-native-run.rs +++ b/src/bin/cairo-native-run.rs @@ -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, + available_gas: Option, /// Run with JIT or AOT (compiled). #[arg(long, value_enum, default_value_t = RunMode::Jit)] run_mode: RunMode, @@ -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();