Skip to content

Lottery test Error: VM Exception #110

Discussion options

You must be logged in to vote

Please copy-paste errors instead of posting screenshots, thank you.

Your contract is reverting with Raffle__UpKeepNotNeeded (you can see that in the error).

What does your performUpkeep look like? It should have this:

        if (!upkeepNeeded) {
            revert Raffle__UpkeepNotNeeded(
                address(this).balance,
                s_players.length,
                uint256(s_raffleState)
            );
        }

Replies: 1 comment 1 reply

Comment options

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

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