mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-05 22:48:36 +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"
|
var network = "mainnet"
|
||||||
if utils.IsNetworkPreset(ctx) {
|
if utils.IsNetworkPreset(ctx) {
|
||||||
switch {
|
switch {
|
||||||
case ctx.IsSet(utils.MainnetFlag.Name):
|
case ctx.Bool(utils.MainnetFlag.Name):
|
||||||
case ctx.IsSet(utils.SepoliaFlag.Name):
|
case ctx.Bool(utils.SepoliaFlag.Name):
|
||||||
network = "sepolia"
|
network = "sepolia"
|
||||||
default:
|
default:
|
||||||
return errors.New("unsupported network, no known era1 checksums")
|
return errors.New("unsupported network, no known era1 checksums")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue