@@ -135,35 +135,6 @@ Global Variables
135
135
- ``type(T).min `` (``T ``): the minimum value representable by the integer type ``T ``, see :ref: `Type Information<meta-type> `.
136
136
- ``type(T).max `` (``T ``): the maximum value representable by the integer type ``T ``, see :ref: `Type Information<meta-type> `.
137
137
138
- .. note ::
139
- When contracts are evaluated off-chain rather than in context of a transaction included in a
140
- block, you should not assume that ``block.* `` and ``tx.* `` refer to values from any specific
141
- block or transaction. These values are provided by the EVM implementation that executes the
142
- contract and can be arbitrary.
143
-
144
- .. note ::
145
- Do not rely on ``block.timestamp `` or ``blockhash `` as a source of randomness,
146
- unless you know what you are doing.
147
-
148
- Both the timestamp and the block hash can be influenced by miners to some degree.
149
- Bad actors in the mining community can for example run a casino payout function on a chosen hash
150
- and just retry a different hash if they did not receive any money.
151
-
152
- The current block timestamp must be strictly larger than the timestamp of the last block,
153
- but the only guarantee is that it will be somewhere between the timestamps of two
154
- consecutive blocks in the canonical chain.
155
-
156
- .. note ::
157
- The block hashes are not available for all blocks for scalability reasons.
158
- You can only access the hashes of the most recent 256 blocks, all other
159
- values will be zero.
160
-
161
- .. note ::
162
- In version 0.5.0, the following aliases were removed: ``suicide `` as alias for ``selfdestruct ``,
163
- ``msg.gas `` as alias for ``gasleft ``, ``block.blockhash `` as alias for ``blockhash `` and
164
- ``sha3 `` as alias for ``keccak256 ``.
165
- .. note ::
166
- In version 0.7.0, the alias ``now `` (for ``block.timestamp ``) was removed.
167
138
168
139
.. index :: visibility, public, private, external, internal
169
140
0 commit comments