Skip to content

Commit

Permalink
keccak256 does not call an external contract
Browse files Browse the repository at this point in the history
``keccak256`` will be compiled to the ``SHA3`` opcode and not call an external contract.
  • Loading branch information
ritzdorf authored Nov 13, 2018
1 parent c237013 commit 8258712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/contracts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8258712

Please sign in to comment.