mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-13 14:34:36 +00:00
bump nim-ethers, fix tests
# Conflicts: # vendor/nim-ethers
This commit is contained in:
parent
dab65eb6bd
commit
10d4dcd70d
@ -1,4 +1,5 @@
|
||||
import pkg/ethers
|
||||
import pkg/ethers/testing
|
||||
import ../storageproofs/timing/proofs
|
||||
import ./storage
|
||||
|
||||
@ -35,7 +36,7 @@ method willProofBeRequired*(proofs: OnChainProofs,
|
||||
id: SlotId): Future[bool] {.async.} =
|
||||
try:
|
||||
return await proofs.storage.willProofBeRequired(id)
|
||||
except JsonRpcProviderError:
|
||||
except JsonRpcProviderError as e:
|
||||
if e.revertReason == "Slot empty":
|
||||
return false
|
||||
raise e
|
||||
|
Loading…
x
Reference in New Issue
Block a user