From d28f6728d99abb718c19cb65064ee32fad1fbedf Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 25 Sep 2024 15:35:39 +1000 Subject: [PATCH] convert EthersError to MarketError --- codex/contracts/market.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex/contracts/market.nim b/codex/contracts/market.nim index 6357ee732..1f395fab1 100644 --- a/codex/contracts/market.nim +++ b/codex/contracts/market.nim @@ -254,7 +254,8 @@ method canReserveSlot*( market: OnChainMarket, id: SlotId): Future[bool] {.async.} = - await market.contract.canReserveSlot(id) + convertEthersError: + return await market.contract.canReserveSlot(id) method subscribeRequests*(market: OnChainMarket, callback: OnRequest):