mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-20 13:27:50 +02:00
cli: fix --amount flag in static in and withdraw
Also fix --sat_per_vbyte flag. All these flags were accessed using wrong type (signed vs unsigned int). Previous version always parsed them as 0 even when set. Regenerate the manual.
This commit is contained in:
parent
7e0797e4af
commit
83cbc7e30f
2 changed files with 6 additions and 6 deletions
|
|
@ -151,13 +151,13 @@ var withdrawalCommand = &cli.Command{
|
|||
"funds should be sent to, if let blank the " +
|
||||
"funds will go to lnd's wallet",
|
||||
},
|
||||
&cli.Int64Flag{
|
||||
&cli.Uint64Flag{
|
||||
Name: "sat_per_vbyte",
|
||||
Usage: "(optional) a manual fee expressed in " +
|
||||
"sat/vbyte that should be used when crafting " +
|
||||
"the transaction",
|
||||
},
|
||||
&cli.IntFlag{
|
||||
&cli.Uint64Flag{
|
||||
Name: "amount",
|
||||
Usage: "the number of satoshis that should be " +
|
||||
"withdrawn from the selected deposits. The " +
|
||||
|
|
@ -211,7 +211,7 @@ func withdraw(ctx context.Context, cmd *cli.Command) error {
|
|||
All: isAllSelected,
|
||||
DestAddr: destAddr,
|
||||
SatPerVbyte: int64(cmd.Uint64("sat_per_vbyte")),
|
||||
Amount: cmd.Int64("amount"),
|
||||
Amount: int64(cmd.Uint64("amount")),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
@ -514,7 +514,7 @@ func staticAddressLoopIn(ctx context.Context, cmd *cli.Command) error {
|
|||
"allowed")
|
||||
|
||||
default:
|
||||
selectedAmount = cmd.Int64("amount")
|
||||
selectedAmount = int64(cmd.Uint64("amount"))
|
||||
}
|
||||
|
||||
client, cleanup, err := getClient(ctx, cmd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue