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
-
I am getting the following error when i run hh test --grep "records player when they enter" :
Code of Raffle.test.js :
Code for Raffle.sol :
Code of 01-deploy-raffle.js :
|
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Apr 4, 2023
Replies: 1 comment 1 reply
-
@akshatlumb In the enterRaffle function this error should be revert when raffle is not open. if (s_raffleState != RaffleState.OPEN) {
revert Raffle__NotOpen();
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
akshatlumb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@akshatlumb In the enterRaffle function this error should be revert when raffle is not open.