You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am failing this unit test on Lesson 9: Hardhat Smart Contract Lottery for "checkUpkeep" function. The problem is resolved when I decrease "evm_increaseTime" from 29 (30 - 1), to 28 (30 -2), but i do not understand why. Appreciate if anyone can help me to understand it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello community,
Below is the test :
Modified line to pass the test => await network.provider.send("evm_increaseTime", [interval.toNumber() - 2])
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions