I tired using this
function timer(){
if (now >= 60 seconds){
calledfunction();
}
function calledfunction(){
//code
timer();
}
calledfunction is not being called when i call timer() so i tired calling calledfunction() directly and it also didnt execute. When i commented timer() in calledfunction() and then invoked calledfunction() then the code worked.
Any idea to call a solidity function for every 60 seconds.
0 ·
Comments