Timeline for now keyword in Solidity
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Jan 18 at 11:24 | history | suggested | sayandcode | CC BY-SA 4.0 |
Add latest update re deprecation
|
Jan 17 at 3:16 | review | Suggested edits | |||
S Jan 18 at 11:24 | |||||
Dec 25, 2022 at 5:57 | comment | added | Nerdi.org | It's worth noting that miners can manipulate block.timestamp & the old 'now' keyword. You can't rely on timestamp, previous block number hash, difficulty, etc because miners can exploit this to call your function with parameters that result in them winning / knowing random number outcome. | |
Jul 1, 2020 at 16:51 | comment | added | Shane Fontaine |
Update: Solidity 0.7.0 deprecated the now keyword. For contracts ^0.7.0, you must use block.timestamp .
|
|
Jul 4, 2017 at 3:05 | vote | accept | Michael | ||
Jul 4, 2017 at 2:43 | history | answered | Jakub Wojciechowski | CC BY-SA 3.0 |