From 115a527caa2a29ee77685d59919e6d6c87b6fb1a Mon Sep 17 00:00:00 2001 From: protolambda Date: Mon, 2 Oct 2023 14:02:49 +0200 Subject: [PATCH] cmd: fix dumpgenesis command --- cmd/utils/flags.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index acfcad8e89..b4f6703a59 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -2199,8 +2199,7 @@ func tryMakeReadOnlyDatabase(ctx *cli.Context, stack *node.Node) ethdb.Database func IsNetworkPreset(ctx *cli.Context) bool { for _, flag := range NetworkFlags { - bFlag, _ := flag.(*cli.BoolFlag) - if ctx.IsSet(bFlag.Name) { + if ctx.IsSet(flag.Names()[0]) { return true } }