Skip to content

Commit

Permalink
Fixup for PR #74: better error parsing in CLB
Browse files Browse the repository at this point in the history
  • Loading branch information
uhbif19 committed May 28, 2024
1 parent 9eb3c8c commit 208f2f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Cardano/CEM/Monads/CLB.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ instance (MonadFail m) => MonadSubmitTx (ClbT m) where
result <- sendTx tx'
case result of
Success _ _ -> return $ Right $ getTxId body
_ -> fail "TODO"
Fail _ validationError ->
return $ Left $ UnhandledNodeSubmissionError validationError
Right (_, _) -> fail "Unsupported tx format"
Left e -> return $ Left $ UnhandledAutobalanceError e

Expand Down

0 comments on commit 208f2f5

Please sign in to comment.