mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #5412 from ritzdorf/patch-2
keccak256 does not call an external contract
This commit is contained in:
commit
289965e6a8
@ -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
|
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
|
might have a side-effect on other memory objects are not. The built-in functions
|
||||||
``keccak256``, ``sha256``, ``ripemd160``, ``ecrecover``, ``addmod`` and ``mulmod``
|
``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
|
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.
|
should be possible to construct complex objects like e.g. lookup-tables.
|
||||||
|
Loading…
Reference in New Issue
Block a user