File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -1286,16 +1286,13 @@ func queryRoutes(ctx *cli.Context) error {
1286
1286
1287
1287
outgoingChanIds := ctx .StringSlice ("outgoing_chan_id" )
1288
1288
if len (outgoingChanIds ) != 0 {
1289
- req .OutgoingChanIds = make ([]uint64 , len (outgoingChanIds ))
1290
- for i , chanID := range outgoingChanIds {
1291
- id , err := strconv .ParseUint (chanID , 10 , 64 )
1292
- if err != nil {
1293
- return fmt .Errorf ("invalid outgoing_chan_id " +
1294
- "argument: %w" , err )
1295
- }
1296
-
1297
- req .OutgoingChanIds [i ] = id
1289
+ chanIDs , err := parseChanIDs (outgoingChanIds )
1290
+ if err != nil {
1291
+ return fmt .Errorf ("unable to decode " +
1292
+ "outgoing_chan_id: %w" , err )
1298
1293
}
1294
+
1295
+ req .OutgoingChanIds = chanIDs
1299
1296
}
1300
1297
1301
1298
if ctx .IsSet ("route_hints" ) {
You can’t perform that action at this time.
0 commit comments