Skip to content

Lesson 9 - TypeError: raffle.callStatic.checkUpKeep is not a function #3199

Answered by RoboCrypter
AndrewPrasaath asked this question in Q&A
Discussion options

You must be logged in to vote

@AndrewPrasaath : Correct the following mistakes :

  • Correct this, From this : checkUpKeep To this : checkUpkeep

  • Correct this From this : upKeepNeeded To this : upkeepNeeded ( Confirm this spelling, By looking in your contract )
    If you strictly following the video, The spelling should be what I mentioned!

Change this test from this :

it("returns false if people haven't sent any ETH", async function () {
                  await network.provider.send("evm_increaseTime", [interval.toNumber() + 1])
                  await network.provider.send("evm_mine", [])
                  const { upKeepNeeded } = await raffle.callStatic.checkUpKeep([])
                  assert(!upKeepNeeded)
})

To t…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@AndrewPrasaath
Comment options

@alymurtazamemon
Comment options

@AndrewPrasaath
Comment options

Comment options

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

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