From c3f6381810747f156936eada14465689fefe6513 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Fri, 21 Jun 2024 21:31:08 +0800 Subject: [PATCH] Fixed type convert error --- x/btcbridge/client/cli/tx.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/x/btcbridge/client/cli/tx.go b/x/btcbridge/client/cli/tx.go index 0b6c85e..6bf1473 100644 --- a/x/btcbridge/client/cli/tx.go +++ b/x/btcbridge/client/cli/tx.go @@ -4,7 +4,6 @@ import ( "encoding/json" "fmt" "os" - "strconv" "strings" "time" @@ -130,15 +129,15 @@ func CmdWithdrawBitcoin() *cobra.Command { return fmt.Errorf("invalid amount") } - feeRate, err := strconv.ParseInt(args[1], 10, 64) - if err != nil { - return fmt.Errorf("invalid fee rate") - } + // feeRate, err := strconv.ParseInt(args[1], 10, 64) + // if err != nil { + // return fmt.Errorf("invalid fee rate") + // } msg := types.NewMsgWithdrawBitcoinRequest( clientCtx.GetFromAddress().String(), args[0], - feeRate, + args[1], ) if err := msg.ValidateBasic(); err != nil {