[marketplace] Rename _freeSlot() -> _forciblyFreeSlot()
This commit is contained in:
parent
a96333ce5f
commit
6e0dfdf7db
|
@ -118,7 +118,7 @@ contract Marketplace is Collateral, Proofs {
|
|||
}
|
||||
}
|
||||
|
||||
function _freeSlot(SlotId slotId)
|
||||
function _forciblyFreeSlot(SlotId slotId)
|
||||
internal
|
||||
slotMustAcceptProofs(slotId)
|
||||
marketplaceInvariant
|
||||
|
|
|
@ -94,7 +94,7 @@ contract Storage is Collateral, Marketplace {
|
|||
// When the collateral drops below the minimum threshold, the slot
|
||||
// needs to be freed so that there is enough remaining collateral to be
|
||||
// distributed for repairs and rewards (with any leftover to be burnt).
|
||||
_freeSlot(slotId);
|
||||
_forciblyFreeSlot(slotId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,8 +26,8 @@ contract TestMarketplace is Marketplace {
|
|||
return _isSlotCancelled(slotId);
|
||||
}
|
||||
|
||||
function freeSlot(SlotId slotId) public {
|
||||
_freeSlot(slotId);
|
||||
function forciblyFreeSlot(SlotId slotId) public {
|
||||
_forciblyFreeSlot(slotId);
|
||||
}
|
||||
|
||||
function slot(SlotId slotId) public view returns (Slot memory) {
|
||||
|
|
|
@ -20,7 +20,7 @@ async function waitUntilFailed(contract, request, slot) {
|
|||
for (let i = 0; i <= request.ask.maxSlotLoss; i++) {
|
||||
slot.index = i
|
||||
let id = slotId(slot)
|
||||
await contract.freeSlot(id)
|
||||
await contract.forciblyFreeSlot(id)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue