Skip to content

Commit

Permalink
set default to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
sdankel committed Aug 22, 2023
1 parent 0410232 commit 134b203
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions forc-plugins/forc-tx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,9 @@ pub struct Script {
pub struct Gas {
/// Gas price for the transaction.
#[clap(long = "gas-price", default_value_t = 0)]
#[devault("0")]
pub price: u64,
/// Gas limit for the transaction.
#[clap(long = "gas-limit", default_value_t = fuel_tx::ConsensusParameters::DEFAULT.max_gas_per_tx)]
#[devault("fuel_tx::ConsensusParameters::DEFAULT.max_gas_per_tx")]
#[clap(long = "gas-limit", default_value_t = 0)]
pub limit: u64,
}

Expand Down

0 comments on commit 134b203

Please sign in to comment.