bump nim-ethers, fix tests

# Conflicts:
#	vendor/nim-ethers
This commit is contained in:
Eric Mastro 2022-09-20 12:10:42 +10:00 committed by Eric Mastro
parent dab65eb6bd
commit 10d4dcd70d
1 changed files with 2 additions and 1 deletions

View File

@ -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