Add debugging for dist tests
This commit is contained in:
parent
7b6f137cf4
commit
c068e7425b
|
@ -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.} =
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue