fix revert check on storage test

This commit is contained in:
Eric Mastro 2022-09-20 16:51:03 +10:00 committed by Eric Mastro
parent 5eb65336fd
commit 38643c9709
1 changed files with 4 additions and 2 deletions

View File

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