From 49c79c1894d364c76b4538be5a2237615e965530 Mon Sep 17 00:00:00 2001 From: William Entriken Date: Wed, 26 Jun 2019 20:04:02 -0400 Subject: [PATCH] Update value-types.rst --- docs/types/value-types.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/types/value-types.rst b/docs/types/value-types.rst index f970a2e2c..17d27e320 100644 --- a/docs/types/value-types.rst +++ b/docs/types/value-types.rst @@ -196,7 +196,7 @@ Operators: .. warning:: If you convert a type that uses a larger byte size to an ``address``, for example ``bytes32``, then the ``address`` is truncated. To reduce conversion ambiguity version 0.4.24 and higher of the compiler force you make the truncation explicit in the conversion. - Take for example the address ``0x111122223333444455556666777788889999AAAABBBBCCCCDDDDEEEEFFFFCCCC``. + Take for example the 32-byte value ``0x111122223333444455556666777788889999AAAABBBBCCCCDDDDEEEEFFFFCCCC``. You can use ``address(uint160(bytes20(b)))``, which results in ``0x111122223333444455556666777788889999aAaa``, or you can use ``address(uint160(uint256(b)))``, which results in ``0x777788889999AaAAbBbbCcccddDdeeeEfFFfCcCc``.