Skip to content

Commit

Permalink
Remove print response flag (#4593)
Browse files Browse the repository at this point in the history
This flag isn't used anywhere and probably hasn't for quite some time.
  • Loading branch information
alexanderbez authored and Alessio Treglia committed Jun 20, 2019
1 parent c3bef9a commit 6d5ca0b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions .pending/improvements/sdk/Remove---print-respo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove `--print-response` flag as it is no longer used.
1 change: 0 additions & 1 deletion client/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const (
FlagFees = flags.FlagFees
FlagGasPrices = flags.FlagGasPrices
FlagBroadcastMode = flags.FlagBroadcastMode
FlagPrintResponse = flags.FlagPrintResponse
FlagDryRun = flags.FlagDryRun
FlagGenerateOnly = flags.FlagGenerateOnly
FlagIndentResponse = flags.FlagIndentResponse
Expand Down
2 changes: 0 additions & 2 deletions client/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ type CLIContext struct {
TrustNode bool
UseLedger bool
BroadcastMode string
PrintResponse bool
Verifier tmlite.Verifier
VerifierHome string
Simulate bool
Expand Down Expand Up @@ -91,7 +90,6 @@ func NewCLIContextWithFrom(from string) CLIContext {
TrustNode: viper.GetBool(flags.FlagTrustNode),
UseLedger: viper.GetBool(flags.FlagUseLedger),
BroadcastMode: viper.GetString(flags.FlagBroadcastMode),
PrintResponse: viper.GetBool(flags.FlagPrintResponse),
Verifier: verifier,
Simulate: viper.GetBool(flags.FlagDryRun),
GenerateOnly: genOnly,
Expand Down
2 changes: 0 additions & 2 deletions client/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const (
FlagFees = "fees"
FlagGasPrices = "gas-prices"
FlagBroadcastMode = "broadcast-mode"
FlagPrintResponse = "print-response"
FlagDryRun = "dry-run"
FlagGenerateOnly = "generate-only"
FlagIndentResponse = "indent"
Expand Down Expand Up @@ -96,7 +95,6 @@ func PostCommands(cmds ...*cobra.Command) []*cobra.Command {
c.Flags().Bool(FlagUseLedger, false, "Use a connected Ledger device")
c.Flags().Float64(FlagGasAdjustment, DefaultGasAdjustment, "adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored ")
c.Flags().StringP(FlagBroadcastMode, "b", BroadcastSync, "Transaction broadcasting mode (sync|async|block)")
c.Flags().Bool(FlagPrintResponse, true, "return tx response (only works with async = false)")
c.Flags().Bool(FlagTrustNode, true, "Trust connected full node (don't verify proofs for responses)")
c.Flags().Bool(FlagDryRun, false, "ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it")
c.Flags().Bool(FlagGenerateOnly, false, "Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase is not accessible and the node operates offline)")
Expand Down

0 comments on commit 6d5ca0b

Please sign in to comment.