Skip to content

How can I use dynamic variables work in Ethereum? #2101

Discussion options

You must be logged in to vote

@deeptshukla This is what will happen with this. After deploying the smart contract, whenever you call this function, it will get the timestamp of the latest block mined and assign it to this variable. But if you are talking about automatically updating this variable then for that you need to use Oracle.

Replies: 3 comments

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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