Skip to content

Lesson 9 lottery test, can't pass raffle.performUpkeep([]) #359

Answered by vrnezt
tinyhodler asked this question in Q&A
Discussion options

You must be logged in to vote

I had the same issue. Solved it by adding:

upkeepNeeded = (timePassed && isOpen && hasBalance && hasPlayers); return (upkeepNeeded, "0x0"); in checkUpkeep function

As shown in the checkUpkeep function on the github repo.

Replies: 6 comments 3 replies

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by PatrickAlphaC
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