Eric 92537a5120
fix(slot reservations): clear AddressSet instead of delete (#235)
* fix(slot-reservations): Allows slot to be reserved when in repair

Previous to when SlotState.Repair was implemented, slots in repair would be considered free and the slots could be reserved in this state. Now that SlotState.Repair has been implemented, the `canReserveSlot` needs to check that the SlotState is in Repair or is Free before allowing reservation.

* fix(slot reservations): clear AddressSet instead of delete

Deleting an AddressSet causes corrupted memory. Each address must be removed individually, which is OK to do since there is a maxReservations parameter that keeps this number small.

https://docs.openzeppelin.com/contracts/5.x/api/utils#EnumerableSet

* Switch to EnumerableSet clear function provided by openzeppelin

---------

Co-authored-by: Arnaud <arnaud@status.im>
2025-05-15 11:40:14 +10:00
..
2025-01-24 15:28:29 +01:00
2024-01-25 13:16:49 +01:00
2025-04-16 11:57:07 +02:00
2025-03-04 08:58:10 +01:00
2025-01-24 15:28:29 +01:00
2024-12-12 18:39:42 +01:00
2022-10-25 12:38:19 +11:00
2025-04-16 11:57:07 +02:00
2025-04-16 11:57:07 +02:00