mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-07 16:03:13 +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
|
||||||
|
import pkg/ethers/testing
|
||||||
import ../storageproofs/timing/proofs
|
import ../storageproofs/timing/proofs
|
||||||
import ./storage
|
import ./storage
|
||||||
|
|
||||||
@ -35,7 +36,7 @@ method willProofBeRequired*(proofs: OnChainProofs,
|
|||||||
id: SlotId): Future[bool] {.async.} =
|
id: SlotId): Future[bool] {.async.} =
|
||||||
try:
|
try:
|
||||||
return await proofs.storage.willProofBeRequired(id)
|
return await proofs.storage.willProofBeRequired(id)
|
||||||
except JsonRpcProviderError:
|
except JsonRpcProviderError as e:
|
||||||
if e.revertReason == "Slot empty":
|
if e.revertReason == "Slot empty":
|
||||||
return false
|
return false
|
||||||
raise e
|
raise e
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user