Skip to content

Commit

Permalink
set FlagGas to GasFlagAuto
Browse files Browse the repository at this point in the history
  • Loading branch information
okdas committed Jan 3, 2025
1 parent 11fc9cc commit fdf9f26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/relayer/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ for such operations.`,
cmd.Flags().Bool(cosmosflags.FlagGRPCInsecure, true, "Used to initialize the Cosmos query context with grpc security options. It can be used to override the `QueryNodeGRPCInsecure` field in the config file if specified.")
cmd.Flags().String(cosmosflags.FlagChainID, "poktroll", "The network chain ID")
cmd.Flags().StringVar(&flagLogLevel, cosmosflags.FlagLogLevel, "debug", "The logging level (debug|info|warn|error)")
cmd.Flags().Float64(cosmosflags.FlagGasAdjustment, 1.5, "The adjustment factor to be multiplied by the estimate returned by the tx simulation")
cmd.Flags().String(cosmosflags.FlagGasPrices, "1upokt", "Set the gas prices in upokt")
cmd.Flags().Float64(cosmosflags.FlagGasAdjustment, 1.5, "The adjustment factor to be multiplied by the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored")
cmd.Flags().String(cosmosflags.FlagGasPrices, "0.0001upokt", "Set the gas prices in upokt")
cmd.Flags().String(cosmosflags.FlagGas, cosmosflags.GasFlagAuto, fmt.Sprintf("gas limit to set per-transaction; set to auto to calculate sufficient gas automatically. Note: %q option doesn't always report accurate results - can adjust %q to allow more room for error in the simulation", cosmosflags.GasFlagAuto, cosmosflags.FlagGasAdjustment))

return cmd
}
Expand Down

0 comments on commit fdf9f26

Please sign in to comment.