mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-06 15:33:06 +00:00
10 lines
230 B
Nim
10 lines
230 B
Nim
import ../statemachine
|
|
|
|
type PurchaseStarted* = ref object of PurchaseState
|
|
|
|
method enter*(state: PurchaseStarted) =
|
|
without purchase =? (state.context as Purchase):
|
|
raiseAssert "invalid state"
|
|
|
|
purchase.future.complete()
|