Timeline for Why do constant state variables get initialised every time?
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 3, 2017 at 19:44 | comment | added | gor | this question is worth tons of gold ( if not BitCoins) - well asked! | |
Mar 23, 2017 at 7:28 | answer | added | o0ragman0o | timeline score: 2 | |
Mar 22, 2017 at 23:17 | history | edited | BokkyPooBah | CC BY-SA 3.0 |
edited title
|
Mar 22, 2017 at 23:16 | answer | added | BokkyPooBah | timeline score: 3 | |
Aug 11, 2016 at 10:28 | comment | added | Roland Kofler |
if you don't change the state then constant is useful because you can call the function without transactions and get the return value. But of course with transfer this is a whole other thing.
|
|
Aug 11, 2016 at 9:50 | comment | added | Prashant Prabhakar Singh | why should I make function constant? Note: This is just a sample scenario, actually I was using constant variable (reward) in a non-constant function (transfer) of cryptocurrency. | |
Aug 11, 2016 at 9:47 | vote | accept | Prashant Prabhakar Singh | ||
Aug 11, 2016 at 9:38 | answer | added | Roland Kofler | timeline score: 10 | |
Aug 11, 2016 at 9:33 | comment | added | Roland Kofler | you should make the function constant too, just a side note. | |
Aug 11, 2016 at 9:18 | history | edited | Prashant Prabhakar Singh | CC BY-SA 3.0 |
deleted 34 characters in body
|
Aug 11, 2016 at 9:13 | history | asked | Prashant Prabhakar Singh | CC BY-SA 3.0 |