We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f15f72b commit 6ea1235Copy full SHA for 6ea1235
src/state_machine.rs
@@ -29,7 +29,13 @@ impl IntentState {
29
| IntentState::Invalid,
30
_
31
) => Err("Terminal state cannot transition"),
32
-
+ (
33
+ IntentState::Created
34
+ | IntentState::Committed
35
+ | IntentState::Expired,
36
+ TransitionEvent::InvalidDetected,
37
+) => Ok(IntentState::Invalid),
38
+
39
(IntentState::Committed, TransitionEvent::CompletionProofVerified) => {
40
Ok(IntentState::Completed)
41
},
0 commit comments