Skip to content

Commit

Permalink
Add time actions to PAB Simulator
Browse files Browse the repository at this point in the history
Fixes #3669
  • Loading branch information
luigy committed Aug 3, 2021
1 parent a2ce648 commit 4e4f406
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plutus-pab/src/Plutus/PAB/Core/ContractInstance.hs
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,14 @@ stmRequestHandler = fmap sequence (wrapHandler (fmap pure nonBlockingRequests) <
<> RequestHandler.handleOwnInstanceIdQueries @effs
<> RequestHandler.handleAddressChangedAtQueries @effs
<> RequestHandler.handleCurrentSlotQueries @effs
<> RequestHandler.handleCurrentTimeQueries @effs

-- requests that wait for changes to happen
blockingRequests =
wrapHandler (processAwaitSlotRequestsSTM @effs)
<> wrapHandler (processTxStatusChangeRequestsSTM @effs)
<> processEndpointRequestsSTM @effs
<> RequestHandler.handleTimeNotifications @effs

-- | Start the thread for the contract instance
startSTMInstanceThread' ::
Expand Down

0 comments on commit 4e4f406

Please sign in to comment.