daml/triggers/service/test-model/LowLevelErrorTrigger.daml
Shayne Fletcher 6be68dc059
Renfinements to error test DAMLs (#6212)
changelog_begin
changelog_end
2020-06-03 15:02:53 +00:00

16 lines
443 B
Haskell

-- Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
-- SPDX-License-Identifier: Apache-2.0
module LowLevelErrorTrigger where
import Daml.Trigger.LowLevel
import DA.Time
trigger : Trigger ()
trigger = Trigger
{ initialState = \party _ _ -> ((), [])
, update = \_ _ () -> error "Intentional error"
, registeredTemplates = AllInDar
, heartbeat = Some (convertMicrosecondsToRelTime 1)
}