Add debugging for dist tests

This commit is contained in:
Eric 2023-09-11 12:19:03 +10:00
parent 7b6f137cf4
commit c068e7425b
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View File

@ -115,7 +115,9 @@ method fillSlot(market: OnChainMarket,
slotIndex: UInt256,
proof: seq[byte],
collateral: UInt256) {.async.} =
trace "approving funds", amount = collateral, slotIndex, requestId
await market.approveFunds(collateral)
trace "filling slot", slotIndex, requestId
await market.contract.fillSlot(requestId, slotIndex, proof)
method freeSlot*(market: OnChainMarket, slotId: SlotId) {.async.} =

View File

@ -37,3 +37,4 @@ method run(state: SaleFilling, machine: Machine): Future[?State] {.async.} =
debug "Filling slot", requestId = $data.requestId, slotIndex
await market.fillSlot(data.requestId, slotIndex, state.proof, collateral)
debug "Waiting for slot filled event...", requestId = $data.requestId, slotIndex