mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8211 from nicos99/docs-breaking-changes-5.0-clarifications
Docs 'breaking changes 5.0' clarifications
This commit is contained in:
commit
01eb9a5b0c
@ -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
|
||||||
@ -455,7 +455,7 @@ New version:
|
|||||||
uint z = someInteger();
|
uint z = someInteger();
|
||||||
x += z;
|
x += z;
|
||||||
// Throw is now disallowed.
|
// Throw is now disallowed.
|
||||||
require(x > 100);
|
require(x <= 100);
|
||||||
int y = -3 >> 1;
|
int y = -3 >> 1;
|
||||||
require(y == -2);
|
require(y == -2);
|
||||||
do {
|
do {
|
||||||
|
Loading…
Reference in New Issue
Block a user