Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove duplicate gas_limit / block_gas_limit field, declare as alias #9406

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading