timewave-computer / covenants

Apache License 2.0
17 stars 4 forks source link

look into extending `ContractOperationError` with state machine transition errors #286

Open bekauz opened 3 months ago

bekauz commented 3 months ago
          Why not extend the `ContractOperationError` (i.e. with an `InvalidOperation`) vs adding a new error type ?

Originally posted by @stiiifff in https://github.com/timewave-computer/covenants/issues/282#issuecomment-2180245218

follow up on this after all FSM logic cleanup and clock tick mode issues to see what makes the most sense at that point