fix parenthesis error in § "Semantic and Syntactic Changes" of v0.5.0 Breaking Changes

This commit is contained in:
Nicolas 2020-01-29 08:13:53 +01:00 committed by GitHub
parent a788ba14f3
commit dc29888601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 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 ``keccak256(abi.encodePacked(a, b, c))``. Even though it is not a breaking
change, it is suggested that developers change 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))``. ``x.call(abi.encodeWithSignature("f(uint256)", a, b))``.
* Functions ``.call()``, ``.delegatecall()`` and ``.staticcall()`` now return * Functions ``.call()``, ``.delegatecall()`` and ``.staticcall()`` now return