mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-02-25 16:03:08 +00:00
fix contracts tests
This commit is contained in:
parent
3cde50596f
commit
64e5ad4f4a
@ -42,7 +42,7 @@ ethersuite "Marketplace contracts":
|
||||
await marketplace.requestStorage(request)
|
||||
switchAccount(host)
|
||||
discard await token.approve(marketplace.address, request.ask.collateral)
|
||||
await marketplace.fillSlot(request.id, 0.u256, proof)
|
||||
discard await marketplace.fillSlot(request.id, 0.u256, proof)
|
||||
slotId = request.slotId(0.u256)
|
||||
|
||||
proc waitUntilProofRequired(slotId: SlotId) {.async.} =
|
||||
@ -57,7 +57,7 @@ ethersuite "Marketplace contracts":
|
||||
proc startContract() {.async.} =
|
||||
for slotIndex in 1..<request.ask.slots:
|
||||
discard await token.approve(marketplace.address, request.ask.collateral)
|
||||
await marketplace.fillSlot(request.id, slotIndex.u256, proof)
|
||||
discard await marketplace.fillSlot(request.id, slotIndex.u256, proof)
|
||||
|
||||
test "accept marketplace proofs":
|
||||
switchAccount(host)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user