Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Hi Furkan, I tried a similar code as yours and cannot reproduce the issue, and can you edit your question to post complete contract? Commented Nov 11, 2022 at 7:35
  • hi Frank, i have updated code as a new answer below. Turns out we cant use checkUpKeep function like this. On my code projectId is a variable on contract. This was the my fault. So it was checking only the last index of projectId. Lets say i add 5 project. checkupkeep only checking 5th project. Not all of them. So i changed code like below. Commented Nov 12, 2022 at 9:42
  • Cool, it is always a good practice that checkUpkeep works as expected before registering upkeep. Commented Nov 14, 2022 at 3:19