Skip to content

Commit

Permalink
Remove removed constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
v0d1ch authored and ffakenz committed Jun 1, 2023
1 parent 4802c28 commit c828a59
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions hydra-node/src/Hydra/Chain/Direct/Handlers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c828a59

Please sign in to comment.