lesson 9, some unit tests didn't pass, error: "raffle.performUpKeep is not a function" #1588
-
when running these unit tests
solidity function code:
I got these errors back
hope someone can help me to fix the error, thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
adityabhattad2021
Aug 7, 2022
Replies: 1 comment 2 replies
-
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([]) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
leung100
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is your error
These should be: