Lesson 10: How to actually give money to the raffle winner? #1162
-
Okay I know this might be a dumb question, but I really need to know this So on a local chain, we deployed the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@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 |
Beta Was this translation helpful? Give feedback.
@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.