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 pkg/chronos
import pkg/ethers/testing
import codex/contracts
import codex/contracts/testtoken
import codex/storageproofs
@ -81,5 +82,6 @@ ethersuite "Storage contracts":
switchAccount(client)
let missingPeriod = periodicity.periodOf(await provider.currentTime())
await provider.advanceTime(periodicity.seconds)
revertsWith "Slot not accepting proofs":
await storage.markProofAsMissing(slotId, missingPeriod)
check:
revertsWith "Slot not accepting proofs":
await storage.markProofAsMissing(slotId, missingPeriod)