forked from cerc-io/laconicd-deprecated
lint
This commit is contained in:
@@ -24,7 +24,7 @@ func GetQueryCmd() *cobra.Command {
|
||||
bondQueryCmd.AddCommand(
|
||||
GetQueryParamsCmd(),
|
||||
GetQueryBondLists(),
|
||||
GetBondByIdCmd(),
|
||||
GetBondByIDCmd(),
|
||||
GetBondListByOwnerCmd(),
|
||||
GetBondModuleBalanceCmd(),
|
||||
)
|
||||
@@ -99,7 +99,7 @@ $ %s query %s list
|
||||
}
|
||||
|
||||
// GetBondByIdCmd implements the bond info by id query command.
|
||||
func GetBondByIdCmd() *cobra.Command {
|
||||
func GetBondByIDCmd() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "get [bond Id]",
|
||||
Short: "Get bond.",
|
||||
@@ -122,7 +122,7 @@ $ %s query bond get {BOND ID}
|
||||
|
||||
id := args[0]
|
||||
|
||||
res, err := queryClient.GetBondById(cmd.Context(), &types.QueryGetBondByIdRequest{Id: id})
|
||||
res, err := queryClient.GetBondByID(cmd.Context(), &types.QueryGetBondByIDRequest{Id: id})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -65,13 +65,13 @@ func RefillBondCmd() *cobra.Command {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
bondId := args[0]
|
||||
bondID := args[0]
|
||||
coin, err := sdk.ParseCoinNormalized(args[1])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
msg := types.NewMsgRefillBond(bondId, coin, clientCtx.GetFromAddress())
|
||||
msg := types.NewMsgRefillBond(bondID, coin, clientCtx.GetFromAddress())
|
||||
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg)
|
||||
},
|
||||
}
|
||||
@@ -91,13 +91,13 @@ func WithdrawBondCmd() *cobra.Command {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
bondId := args[0]
|
||||
bondID := args[0]
|
||||
coin, err := sdk.ParseCoinNormalized(args[1])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
msg := types.NewMsgWithdrawBond(bondId, coin, clientCtx.GetFromAddress())
|
||||
msg := types.NewMsgWithdrawBond(bondID, coin, clientCtx.GetFromAddress())
|
||||
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg)
|
||||
},
|
||||
}
|
||||
@@ -117,8 +117,8 @@ func CancelBondCmd() *cobra.Command {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
bondId := args[0]
|
||||
msg := types.NewMsgCancelBond(bondId, clientCtx.GetFromAddress())
|
||||
bondID := args[0]
|
||||
msg := types.NewMsgCancelBond(bondID, clientCtx.GetFromAddress())
|
||||
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user