Skip to content

Commit 7fb54af

Browse files
committed
Correct usage of 'network id' to 'network ID'
1 parent 131fc21 commit 7fb54af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmd/utils/flags.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ var (
137137
}
138138
NetworkIdFlag = &cli.Uint64Flag{
139139
Name: "networkid",
140-
Usage: "Explicitly set network id (integer)(For testnets: use --sepolia, --holesky, --hoodi instead)",
140+
Usage: "Explicitly set network ID (integer)(For testnets: use --sepolia, --holesky, --hoodi instead)",
141141
Value: ethconfig.Defaults.NetworkId,
142142
Category: flags.EthCategory,
143143
}
@@ -1917,11 +1917,11 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
19171917
}
19181918
}
19191919
if ctx.IsSet(NetworkIdFlag.Name) {
1920-
// Typically it's best to automatically set the network id to the chain id,
1921-
// by not passing the network id flag at all. Emit a warning when set
1922-
// explicitly in case overriding the network id is not the user's intention.
1920+
// Typically it's best to automatically set the network ID to the chainID,
1921+
// by not passing the --networkid flag at all. Emit a warning when set
1922+
// explicitly in case overriding the network ID is not the user's intention.
19231923
id := ctx.Uint64(NetworkIdFlag.Name)
1924-
log.Warn("Setting network id with flag", "id", id)
1924+
log.Warn("Setting network ID with command-line flag", "id", id)
19251925
cfg.NetworkId = id
19261926
}
19271927
// Set any dangling config values

0 commit comments

Comments
 (0)