Skip to content

Commit

Permalink
fix typo in cli command (#164)
Browse files Browse the repository at this point in the history
Co-authored-by: yihuang <[email protected]>
  • Loading branch information
levicook and yihuang authored Aug 25, 2021
1 parent 77ca6e5 commit d3c7429
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions module/x/gravity/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ func GetTxCmd(storeKey string) *cobra.Command {

func CmdSendToEthereum() *cobra.Command {
cmd := &cobra.Command{
Use: "send-to-etheruem [ethereum-reciever] [send-coins] [fee-coins]",
Use: "send-to-ethereum [ethereum-reciever] [send-coins] [fee-coins]",
Aliases: []string{"send", "transfer"},
Args: cobra.ExactArgs(3),
Short: "Send tokens from cosmos chain to connected etheruem chain",
Short: "Send tokens from cosmos chain to connected ethereum chain",
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
Expand All @@ -52,7 +52,7 @@ func CmdSendToEthereum() *cobra.Command {
}

if !common.IsHexAddress(args[0]) {
return fmt.Errorf("must be a valid etheruem address got %s", args[0])
return fmt.Errorf("must be a valid ethereum address got %s", args[0])
}

// Get amount of coins
Expand Down Expand Up @@ -81,7 +81,7 @@ func CmdSendToEthereum() *cobra.Command {

func CmdCancelSendToEthereum() *cobra.Command {
cmd := &cobra.Command{
Use: "cancel-send-to-etheruem [id]",
Use: "cancel-send-to-ethereum [id]",
Args: cobra.ExactArgs(2),
Short: "Cancel ethereum send by id",
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down

0 comments on commit d3c7429

Please sign in to comment.