Skip to content

Commit

Permalink
Fix redelegation command
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzampolin committed Nov 12, 2018
1 parent b9b6f26 commit 97c0251
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions x/stake/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,26 +211,11 @@ func GetCmdDelegate(cdc *codec.Codec) *cobra.Command {
return cmd
}

// GetCmdRedelegate implements the redelegate validator command.
// GetCmdRedelegate the begin redelegation command.
func GetCmdRedelegate(storeName string, cdc *codec.Codec) *cobra.Command {
cmd := &cobra.Command{
Use: "redelegate",
Short: "redelegate illiquid tokens from one validator to another",
}

cmd.AddCommand(
client.PostCommands(
GetCmdBeginRedelegate(storeName, cdc),
)...)

return cmd
}

// GetCmdBeginRedelegate the begin redelegation command.
func GetCmdBeginRedelegate(storeName string, cdc *codec.Codec) *cobra.Command {
cmd := &cobra.Command{
Use: "begin",
Short: "begin redelegation",
RunE: func(cmd *cobra.Command, args []string) error {
txBldr := authtxb.NewTxBuilderFromCLI().WithCodec(cdc)
cliCtx := context.NewCLIContext().
Expand Down

0 comments on commit 97c0251

Please sign in to comment.