Skip to content

Commit

Permalink
fix: remove duplicate gas_limit / block_gas_limit field, declare …
Browse files Browse the repository at this point in the history
…as alias (foundry-rs#9406)

remove duplicate gas_limit field, declare as alias
  • Loading branch information
zerosnacks authored and rplusq committed Nov 29, 2024
1 parent 28c516b commit 082a8b1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/common/src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u64>,

/// 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")]
Expand Down Expand Up @@ -253,7 +248,7 @@ pub struct EnvArgs {
pub block_prevrandao: Option<B256>,

/// 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<u64>,

Expand Down

0 comments on commit 082a8b1

Please sign in to comment.