There's no function in the smart contract which would call the selectWinner
after every x seconds automatically as mentioned in the docs.
As per the docs, the smart contract (raffle) should be able to call the selectWinner
function after every x seconds.
But there is no such function that would trigger the selectWinner
function every x seconds.
Ref from docs : 4. Every X seconds, the raffle will be able to draw a winner and be minted a random puppy.
Here I assume that raffle is referring to the smart contract . If the function is to be called by the owner
then the docs should have mentioned Every X seconds, the owner will ...
.
The selectWinner
function is not automatically called after every x seconds.
VS Code
Add chainlinks automation to automate the calling of the selectWinner
function every x seconds.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.