Skip to content

Commit 6ea1235

Browse files
Update state_machine.rs
1 parent f15f72b commit 6ea1235

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/state_machine.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ impl IntentState {
2929
| IntentState::Invalid,
3030
_
3131
) => Err("Terminal state cannot transition"),
32-
32+
(
33+
IntentState::Created
34+
| IntentState::Committed
35+
| IntentState::Expired,
36+
TransitionEvent::InvalidDetected,
37+
) => Ok(IntentState::Invalid),
38+
3339
(IntentState::Committed, TransitionEvent::CompletionProofVerified) => {
3440
Ok(IntentState::Completed)
3541
},

0 commit comments

Comments
 (0)