Skip to content

Commit

Permalink
Revert "query protocol parameters: use ledger instances"
Browse files Browse the repository at this point in the history
This reverts commit 450a0a6.
  • Loading branch information
carbolymer committed Nov 22, 2023
1 parent 7a2c351 commit d42f586
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->
Expand Down

0 comments on commit d42f586

Please sign in to comment.