Skip to content

Lesson 9: checkUpkeep() error while running unit test #1258

Answered by Rishi860
LucidJoy asked this question in Q&A
Discussion options

You must be logged in to vote

checkUpkeep() function requires a bytes type value. Use [] or "0x".

This

 const { upKeepNeeded } = await raffle.callStatic.checkUpkeep([]);

instead of

 const { upKeepNeeded } = await raffle.callStatic.checkUpkeep();

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LucidJoy
Comment options

Answer selected by LucidJoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants