Fix prysmctl generate-genesis yaml output file (#11635)

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
Inphi 2022-11-08 09:36:58 -05:00 committed by GitHub
parent 02566de74c
commit 4e342b8802
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ func cliActionGenerateGenesisState(cliCtx *cli.Context) error {
}
}
if outputYaml != "" {
if err := writeToOutputFile(outputJson, genesisState, yaml.Marshal); err != nil {
if err := writeToOutputFile(outputYaml, genesisState, yaml.Marshal); err != nil {
return err
}
}