From 5fa5a4e1b8f8430d3c168fcf3898b9772fb0a949 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Tue, 7 Oct 2025 00:00:50 -0300 Subject: [PATCH] cmd/loop: parse start_time_ns as int, not string urfave/cli/v3 returns "" if an int flag is accessed using String getter. --- cmd/loop/swaps.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/loop/swaps.go b/cmd/loop/swaps.go index 73efb381..fd901827 100644 --- a/cmd/loop/swaps.go +++ b/cmd/loop/swaps.go @@ -110,11 +110,7 @@ func listSwaps(ctx *cli.Context) error { // Parse start timestamp if set. if ctx.IsSet("start_time_ns") { - startTimestamp, err := strconv.ParseInt(ctx.String("start_time_ns"), 10, 64) - if err != nil { - return fmt.Errorf("error parsing start timestamp: %w", err) - } - filter.StartTimestampNs = startTimestamp + filter.StartTimestampNs = ctx.Int64("start_time_ns") } resp, err := client.ListSwaps(