Skip to content

Commit 158dc8e

Browse files
authored
Correct usage of 'network id' to 'network ID'
1 parent 2adbe68 commit 158dc8e

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
@@ -138,7 +138,7 @@ var (
138138
}
139139
NetworkIdFlag = &cli.Uint64Flag{
140140
Name: "networkid",
141-
Usage: "Explicitly set network id (integer)(For testnets: use --sepolia, --holesky, --hoodi instead)",
141+
Usage: "Explicitly set network ID (integer)(For testnets: use --sepolia, --holesky, --hoodi instead)",
142142
Value: ethconfig.Defaults.NetworkId,
143143
Category: flags.EthCategory,
144144
}
@@ -1911,11 +1911,11 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
19111911
}
19121912
}
19131913
if ctx.IsSet(NetworkIdFlag.Name) {
1914-
// Typically it's best to automatically set the network id to the chain id,
1915-
// by not passing the network id flag at all. Emit a warning when set
1916-
// explicitly in case overriding the network id is not the user's intention.
1914+
// Typically it's best to automatically set the network ID to the chainID,
1915+
// by not passing the --networkid flag at all. Emit a warning when set
1916+
// explicitly in case overriding the network ID is not the user's intention.
19171917
id := ctx.Uint64(NetworkIdFlag.Name)
1918-
log.Warn("Setting network id with flag", "id", id)
1918+
log.Warn("Setting network ID with command-line flag", "id", id)
19191919
cfg.NetworkId = id
19201920
}
19211921
// Set any dangling config values

0 commit comments

Comments
 (0)