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
commit 025daaada5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,