We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40fe9e9 commit 35c6cecCopy full SHA for 35c6cec
cmd/commands/cmd_payments.go
@@ -1281,17 +1281,9 @@ func queryRoutes(ctx *cli.Context) error {
1281
}
1282
1283
outgoingChanIds := ctx.StringSlice("outgoing_chan_id")
1284
- if len(outgoingChanIds) != 0 {
1285
- req.OutgoingChanIds = make([]uint64, len(outgoingChanIds))
1286
- for i, chanID := range outgoingChanIds {
1287
- id, err := strconv.ParseUint(chanID, 10, 64)
1288
- if err != nil {
1289
- return fmt.Errorf("invalid outgoing_chan_id "+
1290
- "argument: %w", err)
1291
- }
1292
-
1293
- req.OutgoingChanIds[i] = id
1294
+ req.OutgoingChanIds, err = parseChanIDs(outgoingChanIds)
+ if err != nil {
+ return fmt.Errorf("unable to decode outgoing_chan_id: %w", err)
1295
1296
1297
if ctx.IsSet("route_hints") {
0 commit comments