Skip to content

lesson 9: checkUpkeep interval config #2775

Discussion options

You must be logged in to vote

@lucasfernandes

Yes, the i_interval is immutable but s_lastTimeStamp is not. i_interval we are setting through our deploy scripts is 30 and after every performUpkeep we are resetting s_lastTimeStamp = block.timestamp as we did in the constructor and as so with other variables we resetting them after performing performUpkeep function.

And we will never deploy the same contract again because it will never be the same, yes it is true that the code will be the same but also data, instances, and everything will be new for each deployed contract. So this can never happen that one contract redeploys every time for performing some functionality.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by alymurtazamemon
Comment options

You must be logged in to vote
0 replies
Comment options

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

@krakxn
Comment options

@lucasfernandes
Comment options

@krakxn
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
3 participants