From 8258712771164da6d365f2417eeb968045522a6f Mon Sep 17 00:00:00 2001 From: ritzdorf Date: Tue, 13 Nov 2018 15:54:13 +0100 Subject: keccak256 does not call an external contract ``keccak256`` will be compiled to the ``SHA3`` opcode and not call an external contract. --- docs/contracts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/contracts.rst b/docs/contracts.rst index 4d439b26..c1c51e56 100644 --- a/docs/contracts.rst +++ b/docs/contracts.rst @@ -455,7 +455,7 @@ execution data (``msg.value`` or ``gasleft()``) or makes calls to external contr that might have a side-effect on memory allocation are allowed, but those that might have a side-effect on other memory objects are not. The built-in functions ``keccak256``, ``sha256``, ``ripemd160``, ``ecrecover``, ``addmod`` and ``mulmod`` -are allowed (even though they do call external contracts). +are allowed (even though, with the exception of ``keccak256``, they do call external contracts). The reason behind allowing side-effects on the memory allocator is that it should be possible to construct complex objects like e.g. lookup-tables. -- cgit v1.2.3