Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit cba606f

Browse files
authored
Merge pull request #91 from sideprotocol/ping/feat/update-fee-rate
Fixed type convert error
2 parents bb5d80a + c3f6381 commit cba606f

File tree

1 file changed

+5
-6
lines changed
  • x/btcbridge/client/cli

1 file changed

+5
-6
lines changed

x/btcbridge/client/cli/tx.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"encoding/json"
55
"fmt"
66
"os"
7-
"strconv"
87
"strings"
98
"time"
109

@@ -130,15 +129,15 @@ func CmdWithdrawBitcoin() *cobra.Command {
130129
return fmt.Errorf("invalid amount")
131130
}
132131

133-
feeRate, err := strconv.ParseInt(args[1], 10, 64)
134-
if err != nil {
135-
return fmt.Errorf("invalid fee rate")
136-
}
132+
// feeRate, err := strconv.ParseInt(args[1], 10, 64)
133+
// if err != nil {
134+
// return fmt.Errorf("invalid fee rate")
135+
// }
137136

138137
msg := types.NewMsgWithdrawBitcoinRequest(
139138
clientCtx.GetFromAddress().String(),
140139
args[0],
141-
feeRate,
140+
args[1],
142141
)
143142

144143
if err := msg.ValidateBasic(); err != nil {

0 commit comments

Comments
 (0)