File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -506,6 +506,20 @@ func staticAddressLoopIn(ctx *cli.Context) error {
506506 return cli .ShowCommandHelp (ctx , "in" )
507507 }
508508
509+ var selectedAmount int64
510+ if ctx .NArg () == 1 {
511+ amt , err := parseAmt (ctx .Args ().Get (0 ))
512+ if err != nil {
513+ return err
514+ }
515+ selectedAmount = int64 (amt )
516+ } else if ctx .NArg () > 1 {
517+ return fmt .Errorf ("only a single positional argument is " +
518+ "allowed" )
519+ } else {
520+ selectedAmount = ctx .Int64 ("amount" )
521+ }
522+
509523 client , cleanup , err := getClient (ctx )
510524 if err != nil {
511525 return err
@@ -516,7 +530,6 @@ func staticAddressLoopIn(ctx *cli.Context) error {
516530 ctxb = context .Background ()
517531 isAllSelected = ctx .IsSet ("all" )
518532 isUtxoSelected = ctx .IsSet ("utxo" )
519- selectedAmount = ctx .Int64 ("amount" )
520533 autoSelectDepositsForQuote bool
521534 label = ctx .String ("static-loop-in" )
522535 hints []* swapserverrpc.RouteHint
You can’t perform that action at this time.
0 commit comments