From 520f457d3b6f1d9e8bfa77d0ba8078f609e39f1c Mon Sep 17 00:00:00 2001 From: Felix Lipski Date: Fri, 8 Dec 2023 18:21:01 +0100 Subject: [PATCH] replace Aeson encode with encodePretty --- cardano-cli/src/Cardano/CLI/EraBased/Run/Genesis.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/Genesis.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/Genesis.hs index 54cf0205f7..9fa666a07c 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/Genesis.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/Genesis.hs @@ -625,7 +625,7 @@ runGenesisCreateStakedCmd start genDlgs mNonDelegatedSupply (length nonDelegAddrs) nonDelegAddrs stakePools stake (Just delegatedSupply) numDelegations delegAddrs stuffedUtxoAddrs template - liftIO $ LBS.writeFile (rootdir "genesis.json") $ Aeson.encode shelleyGenesis + liftIO $ LBS.writeFile (rootdir "genesis.json") $ encodePretty shelleyGenesis void $ writeFileGenesis (rootdir "genesis.alonzo.json") $ WritePretty alonzoGenesis void $ writeFileGenesis (rootdir "genesis.conway.json") $ WritePretty conwayGenesis