From 239b98b598e75e98268d24e16eb46997affd22df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Wed, 4 Dec 2024 13:13:55 +0100 Subject: [PATCH] Update to cardano-api 10.5 --- cabal.project | 2 +- cardano-cli/cardano-cli.cabal | 2 +- cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs | 6 +++--- flake.lock | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cabal.project b/cabal.project index 153325bf20..2c22a1b675 100644 --- a/cabal.project +++ b/cabal.project @@ -14,7 +14,7 @@ repository cardano-haskell-packages -- you need to run if you change them index-state: , hackage.haskell.org 2024-10-11T15:49:11Z - , cardano-haskell-packages 2024-12-05T13:51:16Z + , cardano-haskell-packages 2024-12-19T20:16:27Z packages: cardano-cli diff --git a/cardano-cli/cardano-cli.cabal b/cardano-cli/cardano-cli.cabal index 79406db539..a1be050e77 100644 --- a/cardano-cli/cardano-cli.cabal +++ b/cardano-cli/cardano-cli.cabal @@ -207,7 +207,7 @@ library binary, bytestring, canonical-json, - cardano-api ^>=10.4, + cardano-api ^>=10.5, cardano-binary, cardano-crypto, cardano-crypto-class ^>=2.1.2, diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs index 2f47ddb2ec..8ff93110a9 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs @@ -567,7 +567,7 @@ runQueryKesPeriodInfoCmd case Map.lookup (coerce blockIssuerHash) opCertCounterMap of -- Operational certificate exists in the protocol state -- so our ondisk op cert counter must be greater than or - -- equal to what is in the node state + -- equal to what is in the node state. Just ptclStateCounter -> return (OpCertOnDiskCounter onDiskOpCertCount, Just $ OpCertNodeStateCounter ptclStateCounter) Nothing -> return (OpCertOnDiskCounter onDiskOpCertCount, Nothing) @@ -1345,7 +1345,6 @@ runQueryStakeDistributionCmd & onLeft (left . QueryCmdAcquireFailure) & onLeft left - writeStakeDistribution :: OutputFormatJsonOrText -> Maybe (File () Out) @@ -1955,7 +1954,8 @@ easyRunQuerySystemStart = lift querySystemStart & onLeft (left . QueryCmdUnsuppo easyRunQuery :: () => Monad m - => m (Either UnsupportedNtcVersionError (Either Consensus.EraMismatch a)) -> ExceptT QueryCmdError m a + => m (Either UnsupportedNtcVersionError (Either Consensus.EraMismatch a)) + -> ExceptT QueryCmdError m a easyRunQuery q = lift q & onLeft (left . QueryCmdUnsupportedNtcVersion) diff --git a/flake.lock b/flake.lock index 387c4a3a8c..073dfd5256 100644 --- a/flake.lock +++ b/flake.lock @@ -3,11 +3,11 @@ "CHaP": { "flake": false, "locked": { - "lastModified": 1733408643, - "narHash": "sha256-IH5nYTjx+CYAK4zQAkOs475X+AOhP/GPgwXm5LQHsEE=", + "lastModified": 1734652334, + "narHash": "sha256-zDJVC0/vTaZq+qs2nYlSCKh19PB0K0eAtJZvn4hRHAI=", "owner": "intersectmbo", "repo": "cardano-haskell-packages", - "rev": "e062328804c933d296e5956c989b326ea3c69eeb", + "rev": "94b36615fa8f5aaae885627273bc8499eeebdca5", "type": "github" }, "original": {