aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-05-23 23:33:10 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-06-25 23:17:18 +0800
commit237788c0bc204eb08ba7000cd51c0c62ecb777c6 (patch)
tree89d3ec8488d8da2eb43f3ee8b9febc5051d38935
parenta55e8c93ce1c3982ec224eacbb56cca243acb15e (diff)
downloaddexon-solidity-237788c0bc204eb08ba7000cd51c0c62ecb777c6.tar.gz
dexon-solidity-237788c0bc204eb08ba7000cd51c0c62ecb777c6.tar.zst
dexon-solidity-237788c0bc204eb08ba7000cd51c0c62ecb777c6.zip
Changelog entry.
-rw-r--r--Changelog.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/Changelog.md b/Changelog.md
index 1e9b2787..b1f742bf 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -1,5 +1,10 @@
### 0.5.0 (unreleased)
+How to update your code:
+ * Change every ``.call()`` to a ``.call("")`` and every ``.call(signature, a, b, c)`` to use ``.call(abi.encodeWithSignature(signature, a, b, c))`` (the last one only works for value types).
+ * Change every ``keccak256(a, b, c)`` to ``keccak256(abi.encodePacked(a, b, c))``.
+
+
Breaking Changes:
* ABI Encoder: Properly pad data from calldata (``msg.data`` and external function parameters). Use ``abi.encodePacked`` for unpadded encoding.
* Code Generator: Signed right shift uses proper arithmetic shift, i.e. rounding towards negative infinity. Warning: this may silently change the semantics of existing code!
@@ -22,6 +27,7 @@ Breaking Changes:
* Parser: Disallow trailing dots that are not followed by a number.
* Type Checker: Disallow arithmetic operations for boolean variables.
* Type Checker: Disallow conversions between ``bytesX`` and ``uintY`` of different size.
+ * Type Checker: Only accept a single ``bytes`` type for ``.call()`` (and family), ``keccak256()``, ``sha256()`` and ``ripemd160()``.
* 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.
* Syntax Checker: Named return values in function types are an error.