Skip to content

Commit

Permalink
test(verifier): repair state can go to filled
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau committed Dec 4, 2024
1 parent 36a86fd commit 2e74f70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion certora/specs/Marketplace.spec
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ rule functionsCausingSlotStateChanges(env e, method f) {
assert slotStateBefore == Marketplace.SlotState.Finished && slotStateAfter == Marketplace.SlotState.Paid => canMakeSlotPaid(f);

// SlotState.Free -> SlotState.Filled
assert slotStateBefore != Marketplace.SlotState.Filled && slotStateAfter == Marketplace.SlotState.Filled => canFillSlot(f);
assert slotStateBefore != Marketplace.SlotState.Free && slotStateAfter == Marketplace.SlotState.Filled => canFillSlot(f);

// SlotState.Repair -> SlotState.Filled
assert slotStateBefore != Marketplace.SlotState.Repair && slotStateAfter == Marketplace.SlotState.Filled => canFillSlot(f);
}

rule allowedSlotStateChanges(env e, method f) {
Expand Down

0 comments on commit 2e74f70

Please sign in to comment.