Lesson 9: [15:28:26] AssertionError: Expected transaction to be reverted with reason 'Raffle__NotEnoughtETHEntered', but it reverted with a custom error #3185
-
Ive been following along on the lesson 9, but i seem to get an error when doing the first "enterRaffle" test: (reverts when you don't pay enought) it("reverts when you don't pay enought", async function () {
await expect(raffle.enterRaffle()).to.be.revertedWith(
"Raffle__NotEnoughtETHEntered"
) the error that i get is the following:
Second test "records players when they enter" and third one "emits event on enter" works like a charm. I've been trying to debug this by myself, but i don't know how to console.log the custom error to have a starting point. This is my github repo for this lesson: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@Coin-Spark You are using the latest version, you should check the newest chai matcher style. See this discussion #1416 |
Beta Was this translation helpful? Give feedback.
@Coin-Spark You are using the latest version, you should check the newest chai matcher style. See this discussion #1416