diff options
author | chriseth <chris@ethereum.org> | 2018-09-27 17:16:50 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-09-27 17:48:41 +0800 |
commit | 927cdb3170c27f8fe7bf105a8479e286bcdc642e (patch) | |
tree | aa6c216a214f6987c3a5247f692fa4325a1738eb /docs/050-breaking-changes.rst | |
parent | 9508406984c1e83e6ce571af4af593c33aed52e6 (diff) | |
download | dexon-solidity-927cdb3170c27f8fe7bf105a8479e286bcdc642e.tar.gz dexon-solidity-927cdb3170c27f8fe7bf105a8479e286bcdc642e.tar.zst dexon-solidity-927cdb3170c27f8fe7bf105a8479e286bcdc642e.zip |
Explain address payable and withdraw.
Diffstat (limited to 'docs/050-breaking-changes.rst')
-rw-r--r-- | docs/050-breaking-changes.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/050-breaking-changes.rst b/docs/050-breaking-changes.rst index 1c12daa8..b49dd1e0 100644 --- a/docs/050-breaking-changes.rst +++ b/docs/050-breaking-changes.rst @@ -107,7 +107,10 @@ For most of the topics the compiler will provide suggestions. other way around is not allowed. Converting ``address`` to ``address payable`` is possible via conversion through ``uint160``. If ``c`` is a contract, ``address(c)`` results in ``address payable`` only if ``c`` has a - payable fallback function. + payable fallback function. If you use the :ref:`withdraw pattern<withdrawal_pattern>`, + you most likely do not have to change your code because ``transfer`` + is only used on ``msg.sender`` instead of stored addresses and ``msg.sender`` + is an ``address payable``. * Conversions between ``bytesX`` and ``uintY`` of different size are now disallowed due to ``bytesX`` padding on the right and ``uintY`` padding on |