Skip to content

Commit

Permalink
no zero gas prices
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed May 14, 2024
1 parent 4a74f8f commit 28dfe3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/katana/executor/benches/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand All @@ -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,
Expand Down

0 comments on commit 28dfe3f

Please sign in to comment.