Skip to content

Commit 35128b1

Browse files
committed
Remove catch all case in handlePABReq
1 parent bfadce0 commit 35128b1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/BotPlutusInterface/Contract.hs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,11 @@ handlePABReq contractEnv req = do
195195
------------------------
196196
-- Unhandled requests --
197197
------------------------
198-
-- AwaitTimeReq t -> pure $ AwaitTimeResp t
199-
-- AwaitUtxoSpentReq txOutRef -> pure $ AwaitUtxoSpentResp ChainIndexTx
200-
-- AwaitUtxoProducedReq Address -> pure $ AwaitUtxoProducedResp (NonEmpty ChainIndexTx)
201-
-- AwaitTxOutStatusChangeReq TxOutRef
202-
-- ExposeEndpointReq ActiveEndpoint -> ExposeEndpointResp EndpointDescription (EndpointValue JSON.Value)
203-
-- YieldUnbalancedTxReq UnbalancedTx
204-
unsupported -> error ("Unsupported PAB effect: " ++ show unsupported)
198+
AwaitUtxoSpentReq _ -> error ("Unsupported PAB effect: " ++ show req)
199+
AwaitUtxoProducedReq _ -> error ("Unsupported PAB effect: " ++ show req)
200+
AwaitTxOutStatusChangeReq _ -> error ("Unsupported PAB effect: " ++ show req)
201+
ExposeEndpointReq _ -> error ("Unsupported PAB effect: " ++ show req)
202+
YieldUnbalancedTxReq _ -> error ("Unsupported PAB effect: " ++ show req)
205203

206204
printBpiLog @w Debug $ pretty resp
207205
pure resp

0 commit comments

Comments
 (0)