diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-07-05 20:46:27 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-07-17 20:33:23 +0800 |
commit | 0075f4239aca8c82cf110dc46ed333fdcd6dd572 (patch) | |
tree | 4e94ceaea848a9b2bb413f43691baf9113ad14e9 /Changelog.md | |
parent | 1d33f41c1ab96746b97b97f79732ec23759fb8f0 (diff) | |
download | dexon-solidity-0075f4239aca8c82cf110dc46ed333fdcd6dd572.tar.gz dexon-solidity-0075f4239aca8c82cf110dc46ed333fdcd6dd572.tar.zst dexon-solidity-0075f4239aca8c82cf110dc46ed333fdcd6dd572.zip |
Address members not accessible by contract instance
Diffstat (limited to 'Changelog.md')
-rw-r--r-- | Changelog.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Changelog.md b/Changelog.md index f3c06d90..c18b589e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -5,6 +5,7 @@ How to update your code: * Change every ``keccak256(a, b, c)`` to ``keccak256(abi.encodePacked(a, b, c))``. * 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 convert ``contract`` to ``address`` before using an ``address`` member. Example: if ``c`` is a variable of type ``contract``, change ``c.transfer(...)`` to ``address(c).transfer(...)``. Breaking Changes: @@ -46,6 +47,7 @@ Breaking Changes: * 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. + * Type Checker: ``Contract`` does not have access to ``address`` members anymore. An explicit conversion is now required before invoking an ``address`` member from a ``contract``. * 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. * References Resolver: Turn missing storage locations into an error. This was already the case in the experimental 0.5.0 mode. * Syntax Checker: Named return values in function types are an error. |