fix revert check on storage test
This commit is contained in:
parent
5eb65336fd
commit
38643c9709
|
@ -1,5 +1,6 @@
|
||||||
import std/json
|
import std/json
|
||||||
import pkg/chronos
|
import pkg/chronos
|
||||||
|
import pkg/ethers/testing
|
||||||
import codex/contracts
|
import codex/contracts
|
||||||
import codex/contracts/testtoken
|
import codex/contracts/testtoken
|
||||||
import codex/storageproofs
|
import codex/storageproofs
|
||||||
|
@ -81,5 +82,6 @@ ethersuite "Storage contracts":
|
||||||
switchAccount(client)
|
switchAccount(client)
|
||||||
let missingPeriod = periodicity.periodOf(await provider.currentTime())
|
let missingPeriod = periodicity.periodOf(await provider.currentTime())
|
||||||
await provider.advanceTime(periodicity.seconds)
|
await provider.advanceTime(periodicity.seconds)
|
||||||
|
check:
|
||||||
revertsWith "Slot not accepting proofs":
|
revertsWith "Slot not accepting proofs":
|
||||||
await storage.markProofAsMissing(slotId, missingPeriod)
|
await storage.markProofAsMissing(slotId, missingPeriod)
|
||||||
|
|
Loading…
Reference in New Issue