Skip to content
Discussion options

You must be logged in to vote

You haven't initialized the upkeep variable and you have wrongly assigned the value of raffleState.
Make this correction

- const raffleState = await raffle.callStatic.checkUpkeep([])  // remove this

const raffleState = await raffle.getRaffleState() //Add this
const {upkeepNeeded} = await raffle.callStatic.checkUpkeep([]) // And this

Replies: 2 comments 4 replies

Comment options

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

@adityabhattad2021
Comment options

Comment options

You must be logged in to vote
2 replies
@othaime-en
Comment options

@ritesh798
Comment options

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