Skip to content

lesson 9, some unit tests didn't pass, error: "raffle.performUpKeep is not a function" #1588

Answered by adityabhattad2021
leung100 asked this question in Q&A
Discussion options

You must be logged in to vote

Here is your error

await raffle.performUpKeep([]) //this will also works: ("0x")
const raffleState = await raffle.callStatic.checkUpKeep([])

These should be:

await raffle.performUpkeep([]) //this will also works: ("0x")
const raffleState = await raffle.callStatic.checkUpkeep([])

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@leung100
Comment options

@adityabhattad2021
Comment options

Answer selected by leung100
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