Skip to content

Commit cd34a0f

Browse files
committed
make suggested change
1 parent 9cf0c68 commit cd34a0f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/utils/flags.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,8 +2135,10 @@ func MakeChainDatabase(ctx *cli.Context, stack *node.Node, readonly bool) ethdb.
21352135
}
21362136

21372137
func IsTestnetPreset(ctx *cli.Context) bool {
2138-
if ctx.GlobalBool(RopstenFlag.Name) || ctx.GlobalBool(SepoliaFlag.Name) || ctx.GlobalBool(RinkebyFlag.Name) || ctx.GlobalBool(GoerliFlag.Name) || ctx.GlobalBool(KilnFlag.Name) || ctx.GlobalBool(DeveloperFlag.Name) {
2139-
return true
2138+
for _, flag := range TestnetFlags {
2139+
if ctx.GlobalBool(flag.GetName()) {
2140+
return true
2141+
}
21402142
}
21412143
return false
21422144
}

0 commit comments

Comments
 (0)