cmd/geth: fix compatErr in initGenesis (#31746)

This commit is contained in:
ericxtheodore 2025-04-30 18:37:48 +08:00 committed by 0g-wh
parent 6c18ed4d55
commit b534f5bdd3

View file

@ -251,7 +251,7 @@ func initGenesis(ctx *cli.Context) error {
utils.Fatalf("Failed to write genesis block: %v", err)
}
if compatErr != nil {
utils.Fatalf("Failed to write chain config: %v", err)
utils.Fatalf("Failed to write chain config: %v", compatErr)
}
log.Info("Successfully wrote genesis state", "database", "chaindata", "hash", hash)