From 7e0ec3c2334e83f592f26caf2e749d54a1385e45 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:44:07 +1100 Subject: [PATCH] Support enforcement of slot reservations before filling slot (#934) --- tests/contracts/testContracts.nim | 2 ++ tests/contracts/testMarket.nim | 25 +++++++++++++++++++++++++ vendor/codex-contracts-eth | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/tests/contracts/testContracts.nim b/tests/contracts/testContracts.nim index 4b59ed62..ba837bbd 100644 --- a/tests/contracts/testContracts.nim +++ b/tests/contracts/testContracts.nim @@ -45,6 +45,7 @@ ethersuite "Marketplace contracts": discard await marketplace.requestStorage(request) switchAccount(host) discard await token.approve(marketplace.address, request.ask.collateral) + discard await marketplace.reserveSlot(request.id, 0.u256) discard await marketplace.fillSlot(request.id, 0.u256, proof) slotId = request.slotId(0.u256) @@ -60,6 +61,7 @@ ethersuite "Marketplace contracts": proc startContract() {.async.} = for slotIndex in 1..