From 4e342b8802a6e207a2c6fe30247017dc9bfca98f Mon Sep 17 00:00:00 2001 From: Inphi Date: Tue, 8 Nov 2022 09:36:58 -0500 Subject: [PATCH] Fix prysmctl generate-genesis yaml output file (#11635) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Radosław Kapka --- cmd/prysmctl/testnet/generate_genesis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/prysmctl/testnet/generate_genesis.go b/cmd/prysmctl/testnet/generate_genesis.go index 1c319222b..ade0f7a37 100644 --- a/cmd/prysmctl/testnet/generate_genesis.go +++ b/cmd/prysmctl/testnet/generate_genesis.go @@ -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 } }