Merge pull request #8765 from ethereum/interfaceId-doc-miscellaneous-fix

docs/cheatsheet.rst: Add ``type(I).interfaceId`` description.
This commit is contained in:
Alex Beregszaszi
2020-04-27 12:26:53 +01:00
committed by GitHub
+1
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,