-
the error i'm getting
there were other similar questions but none of the answers solved the problem code it("reverts if the lottery state is not open", async () => {
await raffle.enterRaffle({ value: raffleEntranceFee })
await network.provider.send("evm_increaseTime", [interval.toNumber() + 1])
await network.provider.send("evm_mine", [])
await raffle.performUpkeep([])
await expect(raffle.enterRaffle({ value: raffleEntranceFee })).to.be.revertedWith(
"Raffle__NotOpen"
)
}) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
@0xamey You should check the message that you are reverting from the contract is this |
Beta Was this translation helpful? Give feedback.
-
@0xamey Made a PR, merge and pull the changes and let me know if it fixes the problem. |
Beta Was this translation helpful? Give feedback.
-
Please provide your |
Beta Was this translation helpful? Give feedback.
@0xamey Made a PR, merge and pull the changes and let me know if it fixes the problem.