Lesson 9 - TypeError: raffle.callStatic.checkUpKeep is not a function #3199
-
While performing test after writing first test script for chekUpKeep function, I got following error. (video TimeStamp - 15:39:45)
My Raffle.test.js code is as follows,
The issue is particularly in this part of code
Above code is exactly same as patrick demonstrated in video, but while I checked the github there is a slight change in "it" script of "checkUpKeep" which is mentioned below,
When I replaced above code in mine, the test passed, anyone help with this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@AndrewPrasaath Make sure the spelling of checkUpkeep |
Beta Was this translation helpful? Give feedback.
-
@AndrewPrasaath : Correct the following mistakes :
Change this test from this :
To this, ( I have corrected it ) :
It should resolve your issue! |
Beta Was this translation helpful? Give feedback.
@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 :
To t…