Skip to content

Question about contract.callStatic.methodName() #975

Discussion options

You must be logged in to vote

@AlexK020908 See we want to test the checkUpkeep function but if we do a transaction it will then call the performUpkeep but we do not want that, we only want to test checkUpkeep. Because of that when we add callStatic with it it will execute all of the code but does not call other functions.

Replies: 3 comments 6 replies

Comment options

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

Comment options

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

@letallan
Comment options

@silent7-x
Comment options

Answer selected by AlexK020908
Comment options

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

@ManuWeb3
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants