Skip to content

Commit

Permalink
Merge pull request #455 from input-output-hk/smelc/protocol-parameter…
Browse files Browse the repository at this point in the history
…s-not-showing-conway-era-parameters

query protocol parameters: use ledger instances
  • Loading branch information
smelc authored Nov 15, 2023
2 parents 7082071 + 450a0a6 commit 931ad3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,13 @@ runQueryProtocolParametersCmd
. newExceptT $ executeQueryAnyMode localNodeConnInfo qInMode
writeProtocolParameters sbe mOutFile pp
where
-- TODO: Conway era - use ledger PParams JSON
writeProtocolParameters
:: ShelleyBasedEra era
-> Maybe (File () Out)
-> Ledger.PParams (ShelleyLedgerEra era)
-> ExceptT QueryCmdError IO ()
writeProtocolParameters sbe mOutFile' pparams =
let apiPParamsJSON = (encodePretty $ fromLedgerPParams sbe pparams)
let apiPParamsJSON = shelleyBasedEraConstraints sbe $ encodePretty pparams
in case mOutFile' of
Nothing -> liftIO $ LBS.putStrLn apiPParamsJSON
Just (File fpath) ->
Expand Down

0 comments on commit 931ad3f

Please sign in to comment.