From 3e0b02bde25826f3b963b96d4ac6df562bbdd0f4 Mon Sep 17 00:00:00 2001 From: Ammar Arif Date: Tue, 14 May 2024 11:50:12 -0400 Subject: [PATCH] no zero gas prices --- crates/katana/executor/benches/utils.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/katana/executor/benches/utils.rs b/crates/katana/executor/benches/utils.rs index 9eb1e69901..a3d88555f2 100644 --- a/crates/katana/executor/benches/utils.rs +++ b/crates/katana/executor/benches/utils.rs @@ -5,6 +5,7 @@ use cairo_vm::vm::runners::builtin_runner::{ OUTPUT_BUILTIN_NAME, POSEIDON_BUILTIN_NAME, RANGE_CHECK_BUILTIN_NAME, SEGMENT_ARENA_BUILTIN_NAME, SIGNATURE_BUILTIN_NAME, }; +use katana_primitives::block::GasPrices; use katana_primitives::env::{BlockEnv, CfgEnv, FeeTokenAddressses}; use katana_primitives::transaction::{ExecutableTxWithHash, InvokeTx, InvokeTxV1}; use katana_primitives::{genesis::constant::DEFAULT_FEE_TOKEN_ADDRESS, FieldElement}; @@ -28,7 +29,7 @@ pub fn tx() -> ExecutableTxWithHash { } pub fn envs() -> (BlockEnv, CfgEnv) { - let block = BlockEnv::default(); + let block = BlockEnv { l1_gas_prices: GasPrices { eth: 1, strk: 1 }, ..Default::default() }; let cfg = CfgEnv { max_recursion_depth: 100, validate_max_n_steps: 4_000_000,