Skip to content

Lesson 9 error in testing in script #2708

Answered by ashrth
soumalya340 asked this question in Q&A
Discussion options

You must be logged in to vote

@soumalya340 I think it should be

function enterRaffle() public payable {
        if (msg.value < i_entranceFee) {  // instead of if (msg.value >= i_entranceFee) {
        revert Raffle__NotEnoughETHEnter();
            revert Raffle__NotEnoughETHEntered();
        }

in your raffle.sol contract.

Replies: 4 comments 16 replies

Comment options

You must be logged in to vote
7 replies
@soumalya340
Comment options

@othaime-en
Comment options

@soumalya340
Comment options

@soumalya340
Comment options

@othaime-en
Comment options

Comment options

You must be logged in to vote
2 replies
@soumalya340
Comment options

@soumalya340
Comment options

Comment options

You must be logged in to vote
7 replies
@othaime-en
Comment options

@ashrth
Comment options

@soumalya340
Comment options

@soumalya340
Comment options

@ashrth
Comment options

Answer selected by soumalya340
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants