-
Hi all,
Attaching my mockOffChain script below:
Doing the checks I see that raffle is in open state, has players and has balance as well but when I print the upKeepNeeded value instead of false it is saying undefined. I have attached the github repo links in a comment if needed. Can someone please help me on how to fix this? Thanks in advance 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 16 replies
-
Push to GitHub; I will look into it. |
Beta Was this translation helpful? Give feedback.
-
Hi all, a update on this. Using the getLatestTimeStamp() function from the contract I compared the timeStamp values from before entering the raffle and then the timestamp after entering a raffle from front-end and they are exactly the same. I think because the timestamp isn't increasing even though a block is getting mined is the reason why timePassed flag is not turning true. Do I have to add in an evm_increaseTime / evm_mine like we did in the tests? |
Beta Was this translation helpful? Give feedback.
-
@PatrickAlphaC Hi Patrick. So sorry to tag you here but I am stuck here. I have tried troubleshooting and trying the diff solutions for the same issue but none of them are working. If you have some free time could you please have a look? Thank you in advance 😇 |
Beta Was this translation helpful? Give feedback.
@PatrickAlphaC Hi Patrick. So sorry to tag you here but I am stuck here. I have tried troubleshooting and trying the diff solutions for the same issue but none of them are working. If you have some free time could you please have a look? Thank you in advance 😇