mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-06 07:23:10 +00:00
contracts: slotstate Paid no longer exists
This commit is contained in:
parent
de1f93d236
commit
98866319ce
@ -53,7 +53,6 @@ type
|
||||
Filled
|
||||
Finished
|
||||
Failed
|
||||
Paid
|
||||
Cancelled
|
||||
Repair
|
||||
|
||||
|
||||
@ -50,8 +50,6 @@ method run*(
|
||||
return some State(SaleFilled())
|
||||
of SlotState.Finished:
|
||||
return some State(SalePayout())
|
||||
of SlotState.Paid:
|
||||
return some State(SaleFinished())
|
||||
of SlotState.Failed:
|
||||
return some State(SaleFailed())
|
||||
of SlotState.Cancelled:
|
||||
|
||||
@ -5,7 +5,6 @@ import pkg/codex/sales/salescontext
|
||||
import pkg/codex/sales/states/unknown
|
||||
import pkg/codex/sales/states/errored
|
||||
import pkg/codex/sales/states/filled
|
||||
import pkg/codex/sales/states/finished
|
||||
import pkg/codex/sales/states/failed
|
||||
import pkg/codex/sales/states/payout
|
||||
|
||||
@ -48,11 +47,6 @@ suite "sales state 'unknown'":
|
||||
let next = await state.run(agent)
|
||||
check !next of SalePayout
|
||||
|
||||
test "switches to finished state when on chain state is 'paid'":
|
||||
market.slotState[slotId] = SlotState.Paid
|
||||
let next = await state.run(agent)
|
||||
check !next of SaleFinished
|
||||
|
||||
test "switches to failed state when on chain state is 'failed'":
|
||||
market.slotState[slotId] = SlotState.Failed
|
||||
let next = await state.run(agent)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user