Skip to content

Commit

Permalink
convert EthersError to MarketError
Browse files Browse the repository at this point in the history
  • Loading branch information
emizzle committed Sep 25, 2024
1 parent da58089 commit d28f672
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codex/contracts/market.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d28f672

Please sign in to comment.