diff options
author | chriseth <chris@ethereum.org> | 2018-08-07 21:10:42 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-08-15 00:07:15 +0800 |
commit | e3b6c5a4bdbc3066889b6898e5e07bfd599a4d37 (patch) | |
tree | bfa68a2e81e409c713b5877d4e1577ce5ef1d9b8 /Changelog.md | |
parent | 683bce18690cc2790b68289278a5d84995472fda (diff) | |
download | dexon-solidity-e3b6c5a4bdbc3066889b6898e5e07bfd599a4d37.tar.gz dexon-solidity-e3b6c5a4bdbc3066889b6898e5e07bfd599a4d37.tar.zst dexon-solidity-e3b6c5a4bdbc3066889b6898e5e07bfd599a4d37.zip |
Update documentation.
Diffstat (limited to 'Changelog.md')
-rw-r--r-- | Changelog.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Changelog.md b/Changelog.md index ea4504ac..8a16d900 100644 --- a/Changelog.md +++ b/Changelog.md @@ -5,7 +5,7 @@ How to update your code: * Change every ``keccak256(a, b, c)`` to ``keccak256(abi.encodePacked(a, b, c))``. * Add ``public`` to every function and ``external`` to every fallback or interface function that does not specify its visibility already. * Make your fallback functions ``external``. - * Explicitly state the storage location for local variables of struct and array types, e.g. change ``uint[] x = m_x`` to ``uint[] storage x = m_x``. + * Explicitly state the data location for all variables of struct, array or mapping types (including function parameters), e.g. change ``uint[] x = m_x`` to ``uint[] storage x = m_x``. Note that ``external`` functions require parameters with a data location of ``calldata``. * Explicitly convert values of contract type to addresses before using an ``address`` member. Example: if ``c`` is a contract, change ``c.transfer(...)`` to ``address(c).transfer(...)``. Breaking Changes: @@ -54,6 +54,7 @@ Breaking Changes: * Type Checker: Disallow calling constructor with wrong argument count. This was already the case in the experimental 0.5.0 mode. * Type Checker: Disallow uninitialized storage variables. This was already the case in the experimental 0.5.0 mode. * Type Checker: Detecting cyclic dependencies in variables and structs is limited in recursion to 256. + * Type Checker: Require explicit data location for all variables, including function parameters. This was partly already the case in the experimental 0.5.0 mode. * Type Checker: Only accept a single ``bytes`` type for ``.call()`` (and family), ``keccak256()``, ``sha256()`` and ``ripemd160()``. * Type Checker: Fallback function must be external. This was already the case in the experimental 0.5.0 mode. * Type Checker: Interface functions must be declared external. This was already the case in the experimental 0.5.0 mode. @@ -61,7 +62,7 @@ Breaking Changes: * Type Checker: Disallow "loose assembly" syntax entirely. This means that jump labels, jumps and non-functional instructions cannot be used anymore. * Type System: Disallow explicit and implicit conversions from decimal literals to ``bytesXX`` types. * Type System: Disallow explicit and implicit conversions from hex literals to ``bytesXX`` types of different size. - * Remove obsolete ``std`` directory from the Solidity repository. This means accessing ``https://github.com/ethereum/soldity/blob/develop/std/*.sol`` (or ``https://github.com/ethereum/solidity/std/*.sol`` in Remix) will not be possible. + * Remove obsolete ``std`` directory from the Solidity repository. This means accessing ``https://github.com/ethereum/solidity/blob/develop/std/*.sol`` (or ``https://github.com/ethereum/solidity/std/*.sol`` in Remix) will not be possible. * References Resolver: Turn missing storage locations into an error. This was already the case in the experimental 0.5.0 mode. * Syntax Checker: Disallow functions without implementation to use modifiers. This was already the case in the experimental 0.5.0 mode. * Syntax Checker: Named return values in function types are an error. |