We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4b6f97 commit be6137dCopy full SHA for be6137d
hydra-node/src/Hydra/Chain/CardanoClient.hs
@@ -250,11 +250,7 @@ queryUTxOByTxIn networkId socket queryPoint inputs =
250
pure $ UTxO.fromApi eraUTxO
251
252
assumeShelleyBasedEraOrThrow :: MonadThrow m => CardanoEra era -> m (ShelleyBasedEra era)
253
-assumeShelleyBasedEraOrThrow era = do
254
- x <- requireShelleyBasedEra era
255
- case x of
256
- Just sbe -> pure sbe
257
- Nothing -> throwIO $ QueryNotShelleyBasedEraException (anyCardanoEra era)
+assumeShelleyBasedEraOrThrow era = inEonForEra (throwIO $ QueryNotShelleyBasedEraException $ anyCardanoEra era) pure era
258
259
-- | Query the whole UTxO from node at given point. Useful for debugging, but
260
-- should obviously not be used in production code.
0 commit comments