docs/cheatsheet.rst: Add `type(I).interfaceId` description.

This commit is contained in:
Alexander Arlt 2020-04-24 08:06:15 -05:00
parent 2b39f3b988
commit 55eda85a30

View File

@ -121,6 +121,7 @@ Global Variables
- ``type(C).name`` (``string``): the name of the contract
- ``type(C).creationCode`` (``bytes memory``): creation bytecode of the given contract, see :ref:`Type Information<meta-type>`.
- ``type(C).runtimeCode`` (``bytes memory``): runtime bytecode of the given contract, see :ref:`Type Information<meta-type>`.
- ``type(I).interfaceId`` (``bytes4``): value containing the EIP-165 interface identifier of the given interface, see :ref:`Type Information<meta-type>`.
.. note::
Do not rely on ``block.timestamp``, ``now`` and ``blockhash`` as a source of randomness,