Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Do not support edit min-self-delegation anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
whunmr committed Jul 24, 2019
1 parent c3cf0bd commit 8e2d876
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd/cetcli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import (
authrest "github.com/cosmos/cosmos-sdk/x/auth/client/rest"
"github.com/cosmos/cosmos-sdk/x/bank"

staking_cli "github.com/cosmos/cosmos-sdk/x/staking/client/cli"

"github.com/coinexchain/dex/app"
"github.com/coinexchain/dex/cmd/cetcli/dev"
_ "github.com/coinexchain/dex/cmd/cetcli/statik"
Expand Down Expand Up @@ -168,18 +166,10 @@ func txCmd(cdc *amino.Codec) *cobra.Command {
}

txCmd.RemoveCommand(cmdsToRemove...)
FixUnknownFlagIssue(txCmd)

return txCmd
}

func FixUnknownFlagIssue(txCmd *cobra.Command) {
cmd, _, err := txCmd.Find([]string{"staking", "edit-validator"})
if err == nil {
cmd.Flags().AddFlagSet(staking_cli.FsMinSelfDelegation)
}
}

// registerRoutes registers the routes from the different modules for the LCD.
// NOTE: details on the routes added for each module are in the module documentation
// NOTE: If making updates here you also need to update the test helper in client/lcd/test_helper.go
Expand Down

0 comments on commit 8e2d876

Please sign in to comment.