Skip to content

Lesson 10: How to actually give money to the raffle winner? #1162

Answered by alymurtazamemon
Suhel-Kap asked this question in Q&A
Discussion options

You must be logged in to vote

@Suhel-Kap After every 30 seconds (this time we specified) you can run this script, and if there will be all of the things true that we mentioned in the checkUpkeep function, it will return us the winner and resets everything, means resets players to 0, amount to 0, etc.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Suhel-Kap
Comment options

@alymurtazamemon
Comment options

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