From dc298886010120078fe86fdf24796f344dce54b4 Mon Sep 17 00:00:00 2001 From: Nicolas <32513365+nicos99@users.noreply.github.com> Date: Wed, 29 Jan 2020 08:13:53 +0100 Subject: [PATCH 1/2] =?UTF-8?q?fix=20parenthesis=20error=20in=20=C2=A7=20"?= =?UTF-8?q?Semantic=20and=20Syntactic=20Changes"=20of=20v0.5.0=20Breaking?= =?UTF-8?q?=20Changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/050-breaking-changes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/050-breaking-changes.rst b/docs/050-breaking-changes.rst index 497936f31..93238e189 100644 --- a/docs/050-breaking-changes.rst +++ b/docs/050-breaking-changes.rst @@ -63,7 +63,7 @@ This section highlights changes that affect syntax and semantics. last one only works for value types). Change every ``keccak256(a, b, c)`` to ``keccak256(abi.encodePacked(a, b, c))``. Even though it is not a breaking change, it is suggested that developers change - ``x.call(bytes4(keccak256("f(uint256)"), a, b)`` to + ``x.call(bytes4(keccak256("f(uint256)")), a, b)`` to ``x.call(abi.encodeWithSignature("f(uint256)", a, b))``. * Functions ``.call()``, ``.delegatecall()`` and ``.staticcall()`` now return From 49514bc577b7aedea154a4c298d08f9722cf47d0 Mon Sep 17 00:00:00 2001 From: Nicolas <32513365+nicos99@users.noreply.github.com> Date: Wed, 29 Jan 2020 08:21:48 +0100 Subject: [PATCH 2/2] =?UTF-8?q?fix=20a=20logical=20contradiction=20in=20ne?= =?UTF-8?q?w=20version=20of=20=C2=A7=20Example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "if (x > 100) throw;" --> "require(x <= 100);" --- docs/050-breaking-changes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/050-breaking-changes.rst b/docs/050-breaking-changes.rst index 93238e189..ede846cc3 100644 --- a/docs/050-breaking-changes.rst +++ b/docs/050-breaking-changes.rst @@ -455,7 +455,7 @@ New version: uint z = someInteger(); x += z; // Throw is now disallowed. - require(x > 100); + require(x <= 100); int y = -3 >> 1; require(y == -2); do {