Cosmetic change

This commit is contained in:
Arnaud 2025-01-28 17:14:53 +01:00
parent 3ec9b476ff
commit bf715b3c5d
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -35,11 +35,11 @@ method run(state: SaleFilling, machine: Machine): Future[?State] {.async.} =
requestId = data.requestId
slotIndex = data.slotIndex
let slotCollateral = await market.slotCollateral(data.requestId, SlotState.Free)
let collateral = await market.slotCollateral(data.requestId, SlotState.Free)
debug "Filling slot"
try:
await market.fillSlot(data.requestId, data.slotIndex, state.proof, slotCollateral)
await market.fillSlot(data.requestId, data.slotIndex, state.proof, collateral)
except MarketError as e:
if e.msg.contains "Slot is not free":
debug "Slot is already filled, ignoring slot"