Skip to content

Commit

Permalink
query protocol parameters: use ledger instances
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Nov 14, 2023
1 parent 02d1f4b commit 7620690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ runQueryProtocolParametersCmd
-> Maybe (File () Out)
-> Ledger.PParams (ShelleyLedgerEra era)
-> ExceptT QueryCmdError IO ()
writeProtocolParameters sbe mOutFile' pparams =
let apiPParamsJSON = (encodePretty $ fromLedgerPParams sbe pparams)
writeProtocolParameters _sbe mOutFile' pparams =
let apiPParamsJSON = encodePretty pparams
in case mOutFile' of
Nothing -> liftIO $ LBS.putStrLn apiPParamsJSON
Just (File fpath) ->
Expand Down

0 comments on commit 7620690

Please sign in to comment.