Skip to content

Commit 2cb29db

Browse files
authored
Merge pull request #13024 from SamuelOsewa/patch-2
Remove notes section from Cheatsheet
2 parents 6eb0900 + 2dee5dc commit 2cb29db

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

docs/cheatsheet.rst

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -135,35 +135,6 @@ Global Variables
135135
- ``type(T).min`` (``T``): the minimum value representable by the integer type ``T``, see :ref:`Type Information<meta-type>`.
136136
- ``type(T).max`` (``T``): the maximum value representable by the integer type ``T``, see :ref:`Type Information<meta-type>`.
137137

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.
167138

168139
.. index:: visibility, public, private, external, internal
169140

0 commit comments

Comments
 (0)