Skip to content

Commit

Permalink
[cli] Update CLI default max gas amount (#2225)
Browse files Browse the repository at this point in the history
* [cli] Update CLI default max gas amount

* fixup
  • Loading branch information
jolestar committed Jul 20, 2024
1 parent b64911b commit aae15d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rooch-rpc-client/src/wallet_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl WalletContext {
sender,
sequence_number,
chain_id,
max_gas_amount.unwrap_or(GasScheduleConfig::INITIAL_MAX_GAS_AMOUNT),
max_gas_amount.unwrap_or(GasScheduleConfig::CLI_DEFAULT_MAX_GAS_AMOUNT),
action,
);
Ok(tx_data)
Expand Down
2 changes: 2 additions & 0 deletions moveos/moveos-types/src/moveos_std/gas_schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ impl GasScheduleConfig {
pub const INITIAL_MAX_GAS_AMOUNT: u64 = 1_000_000_000u64;
/// The maximum gas amount that can be used for a read-only function call
pub const READONLY_MAX_GAS_AMOUNT: u64 = 5_000_000_000u64;
/// The default maximum gas amount for the CLI to use
pub const CLI_DEFAULT_MAX_GAS_AMOUNT: u64 = 100_000_000u64;
}

impl MoveStructType for GasScheduleConfig {
Expand Down

0 comments on commit aae15d6

Please sign in to comment.