Skip to content

Commit

Permalink
cmd: fix dumpgenesis command
Browse files Browse the repository at this point in the history
  • Loading branch information
protolambda committed Oct 2, 2023
1 parent 6b32eec commit 115a527
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 115a527

Please sign in to comment.