mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
cmd/geth: fix ctx.IsSet return true even flags like --sepolia=false
This commit is contained in:
parent
21c5a287f9
commit
ac60fc3659
1 changed files with 2 additions and 2 deletions
|
|
@ -794,8 +794,8 @@ func downloadEra(ctx *cli.Context) error {
|
|||
var network = "mainnet"
|
||||
if utils.IsNetworkPreset(ctx) {
|
||||
switch {
|
||||
case ctx.IsSet(utils.MainnetFlag.Name):
|
||||
case ctx.IsSet(utils.SepoliaFlag.Name):
|
||||
case ctx.Bool(utils.MainnetFlag.Name):
|
||||
case ctx.Bool(utils.SepoliaFlag.Name):
|
||||
network = "sepolia"
|
||||
default:
|
||||
return errors.New("unsupported network, no known era1 checksums")
|
||||
|
|
|
|||
Loading…
Reference in a new issue