diff --git a/docs/cheatsheet.rst b/docs/cheatsheet.rst index a7581aae5..eabf83931 100644 --- a/docs/cheatsheet.rst +++ b/docs/cheatsheet.rst @@ -135,35 +135,6 @@ Global Variables - ``type(T).min`` (``T``): the minimum value representable by the integer type ``T``, see :ref:`Type Information`. - ``type(T).max`` (``T``): the maximum value representable by the integer type ``T``, see :ref:`Type Information`. -.. note:: - When contracts are evaluated off-chain rather than in context of a transaction included in a - block, you should not assume that ``block.*`` and ``tx.*`` refer to values from any specific - block or transaction. These values are provided by the EVM implementation that executes the - contract and can be arbitrary. - -.. note:: - Do not rely on ``block.timestamp`` or ``blockhash`` as a source of randomness, - unless you know what you are doing. - - Both the timestamp and the block hash can be influenced by miners to some degree. - Bad actors in the mining community can for example run a casino payout function on a chosen hash - and just retry a different hash if they did not receive any money. - - The current block timestamp must be strictly larger than the timestamp of the last block, - but the only guarantee is that it will be somewhere between the timestamps of two - consecutive blocks in the canonical chain. - -.. note:: - The block hashes are not available for all blocks for scalability reasons. - You can only access the hashes of the most recent 256 blocks, all other - values will be zero. - -.. note:: - In version 0.5.0, the following aliases were removed: ``suicide`` as alias for ``selfdestruct``, - ``msg.gas`` as alias for ``gasleft``, ``block.blockhash`` as alias for ``blockhash`` and - ``sha3`` as alias for ``keccak256``. -.. note:: - In version 0.7.0, the alias ``now`` (for ``block.timestamp``) was removed. .. index:: visibility, public, private, external, internal