Skip to content

Lesson 9 Error: VM Exception while processing transaction: reverted with custom error 'Raffle__NotOpen()' #5229

Answered by alymurtazamemon
akshatlumb asked this question in Q&A
Discussion options

You must be logged in to vote

@akshatlumb In the enterRaffle function this error should be revert when raffle is not open.

 if (s_raffleState != RaffleState.OPEN) {
     revert Raffle__NotOpen();
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@akshatlumb
Comment options

Answer selected by akshatlumb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants