diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs index 4c14bd71a0..04476164d3 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs @@ -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) ->