diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs index 33d2c2ad32..805b86bf8a 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs @@ -186,13 +186,14 @@ 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 = shelleyBasedEraConstraints sbe $ encodePretty pparams + let apiPParamsJSON = (encodePretty $ fromLedgerPParams sbe pparams) in case mOutFile' of Nothing -> liftIO $ LBS.putStrLn apiPParamsJSON Just (File fpath) ->