Skip to content

Commit

Permalink
Merge pull request #91 from sideprotocol/ping/feat/update-fee-rate
Browse files Browse the repository at this point in the history
Fixed type convert error
  • Loading branch information
liangping authored Jun 21, 2024
2 parents bb5d80a + c3f6381 commit cba606f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions x/btcbridge/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"os"
"strconv"
"strings"
"time"

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit cba606f

Please sign in to comment.