From cc27c50a8932f9e97c8d2e3eff1d2e1f008a72b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Federico=20Rodr=C3=ADguez?= Date: Tue, 1 Oct 2024 08:59:53 -0300 Subject: [PATCH] chore: change meaning of l1 one gas price constant (#598) --- crates/zksync/core/src/vm/inspect.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/zksync/core/src/vm/inspect.rs b/crates/zksync/core/src/vm/inspect.rs index 5ce3ef439..8350a2cad 100644 --- a/crates/zksync/core/src/vm/inspect.rs +++ b/crates/zksync/core/src/vm/inspect.rs @@ -53,8 +53,8 @@ use foundry_evm_abi::{ patch_hh_console_selector, Console, HardhatConsole, HARDHAT_CONSOLE_ADDRESS, }; -/// Maximum gas price allowed for L1. -const MAX_L1_GAS_PRICE: u64 = 1000; +/// Minimum gas price allowed for L1. +const MIN_L1_GAS_PRICE: u64 = 1000; /// Represents the result of execution a [`L2Tx`] on EraVM #[derive(Debug)] @@ -416,7 +416,7 @@ fn inspect_inner( ccx: &mut CheatcodeTracerContext, call_ctx: CallContext, ) -> InnerZkVmResult { - let l1_gas_price = call_ctx.block_basefee.to::().max(MAX_L1_GAS_PRICE); + let l1_gas_price = call_ctx.block_basefee.to::().max(MIN_L1_GAS_PRICE); let fair_l2_gas_price = call_ctx.block_basefee.saturating_to::(); let batch_env = create_l1_batch_env(storage.clone(), l1_gas_price, fair_l2_gas_price);