Skip to content

Commit

Permalink
chore: remove wasm query gas limit flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Lockwarr committed Oct 3, 2024
1 parent 2c91e9d commit d590570
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd/nolusd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ import (

// FlagRejectConfigDefaults defines a flag to reject some select defaults that override what is in the config file.
const FlagRejectConfigDefaults = "reject-config-defaults"
const FlagCustomWasmQueryGasLimit = "wasm-query-gas-limit"

type (
// AppBuilder is a method that allows to build an app.
Expand Down Expand Up @@ -309,10 +308,6 @@ func initRootCmd(

// Get flag value for rejecting config defaults
rejectConfigDefaults := serverCtx.Viper.GetBool(FlagRejectConfigDefaults)
wasmQueryGasLimit := serverCtx.Viper.GetString(FlagCustomWasmQueryGasLimit)
if wasmQueryGasLimit != "" {
recommendedAppTomlValues[0].Value = wasmQueryGasLimit
}

// overwrite config.toml and app.toml values, if rejectConfigDefaults is false
if !rejectConfigDefaults {
Expand Down Expand Up @@ -396,7 +391,6 @@ func addModuleInitFlags(startCmd *cobra.Command) {
crisis.AddModuleInitFlags(startCmd)
wasm.AddModuleInitFlags(startCmd)
startCmd.Flags().Bool(FlagRejectConfigDefaults, false, "Reject some select recommended default values from being automatically set in the config.toml and app.toml")
startCmd.Flags().String(FlagCustomWasmQueryGasLimit, "", "Set custom default value for wasm query gas limit in app.toml")
}

func overwriteFlagDefaults(c *cobra.Command, defaults map[string]string) {
Expand Down

0 comments on commit d590570

Please sign in to comment.