Skip to content

Lesson 9 Raffle__UpkeepNotNeeded being (incorrectly!) invoked #5157

Closed Answered by nstapleton1
nstapleton1 asked this question in Q&A
Discussion options

You must be logged in to vote

I found the answer here: #359

Add these lines to the end of checkUpkeep:
upkeepNeeded = (timePassed && isOpen && hasBalance && hasPlayers);
return (upkeepNeeded, "0x0");

I had previously tried this but when I added the lines, I forgot to re-deploy the contract before running the tests again.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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
1 participant