From c828a59dd45e076455b6c134abb50ed8d42216fe Mon Sep 17 00:00:00 2001 From: Sasha Bogicevic Date: Sat, 27 May 2023 09:00:39 +0200 Subject: [PATCH] Remove removed constructor --- hydra-node/src/Hydra/Chain/Direct/Handlers.hs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/hydra-node/src/Hydra/Chain/Direct/Handlers.hs b/hydra-node/src/Hydra/Chain/Direct/Handlers.hs index e94ed6307ab..7804fda93d2 100644 --- a/hydra-node/src/Hydra/Chain/Direct/Handlers.hs +++ b/hydra-node/src/Hydra/Chain/Direct/Handlers.hs @@ -25,14 +25,7 @@ import Hydra.Cardano.Api ( getTxBody, getTxId, ) -import Hydra.Chain ( - Chain (..), - ChainCallback, - ChainEvent (..), - ChainStateType, - PostChainTx (..), - PostTxError (..), - ) +import Hydra.Chain (Chain (..), ChainCallback, ChainEvent (..), ChainStateType, PostChainTx (..), PostTxError (..)) import Hydra.Chain.Direct.State ( ChainContext (contestationPeriod), ChainState (Closed, Idle, Initial, Open), @@ -159,7 +152,6 @@ mkChain tracer queryTimeHandle wallet ctx LocalChainState{getLatest} submitTx = case Hydra.Chain.Direct.State.chainState chainState of Initial st -> case commit ctx st utxo of - Left MoreThanOneUTxOCommitted -> pure $ Left MoreThanOneUTxOCommitted Left CannotCommitReferenceScript -> pure $ Left CannotCommitReferenceScript Left (CommittedTooMuchADAForMainnet l ml) -> pure $ Left $ CommittedTooMuchADAForMainnet l ml Left e -> throwIO e