From 65bb66b9e2fc10af3bfde0c879575a86cc150e3a Mon Sep 17 00:00:00 2001 From: zerosnacks Date: Mon, 25 Nov 2024 14:31:30 +0100 Subject: [PATCH] remove duplicate gas_limit field, declare as alias --- crates/common/src/evm.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/common/src/evm.rs b/crates/common/src/evm.rs index 3eca0800e0cd..c4dfccae1641 100644 --- a/crates/common/src/evm.rs +++ b/crates/common/src/evm.rs @@ -196,11 +196,6 @@ impl Provider for EvmArgs { #[derive(Clone, Debug, Default, Serialize, Parser)] #[command(next_help_heading = "Executor environment config")] pub struct EnvArgs { - /// The block gas limit. - #[arg(long, value_name = "GAS_LIMIT")] - #[serde(skip_serializing_if = "Option::is_none")] - pub gas_limit: Option, - /// EIP-170: Contract code size limit in bytes. Useful to increase this because of tests. By /// default, it is 0x6000 (~25kb). #[arg(long, value_name = "CODE_SIZE")] @@ -253,7 +248,7 @@ pub struct EnvArgs { pub block_prevrandao: Option, /// The block gas limit. - #[arg(long, value_name = "GAS_LIMIT")] + #[arg(long, visible_alias = "gas-limit", value_name = "GAS_LIMIT")] #[serde(skip_serializing_if = "Option::is_none")] pub block_gas_limit: Option,