We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aef512f + 3d4a3c8 commit 9ef0a7dCopy full SHA for 9ef0a7d
docs/types/value-types.rst
@@ -229,7 +229,7 @@ Operators:
229
To reduce conversion ambiguity, starting with version 0.4.24, the compiler will force you to make the truncation explicit in the conversion.
230
Take for example the 32-byte value ``0x111122223333444455556666777788889999AAAABBBBCCCCDDDDEEEEFFFFCCCC``.
231
232
- You can use ``address(uint160(bytes20(b)))``, which results in ``0x111122223333444455556666777788889999aAaa``,
+ You can use ``address(bytes20(b))``, which results in ``0x111122223333444455556666777788889999aAaa``,
233
or you can use ``address(uint160(uint256(b)))``, which results in ``0x777788889999AaAAbBbbCcccddDdeeeEfFFfCcCc``.
234
235
.. note::
0 commit comments