Skip to content

Lesson 9: AssertionError: expected undefined to equal false #6403

Answered by Codensity30
rittdhar12 asked this question in Q&A
Discussion options

You must be logged in to vote

Just noticed, you're not awaiting the checkUpkeep function, to return value hence it remains undefined.
Update the code to this - const { upkeepNeeded } = await raffle.checkUpkeep.staticCall(new Uint8Array());

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@rittdhar12
Comment options

@rittdhar12
Comment options

@Codensity30
Comment options

Answer selected by rittdhar12
@rittdhar12
Comment options

@orishameedah
Comment options

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