Merge pull request #12623 from theNvN/develop

plain `address` can be sent Ether too
This commit is contained in:
chriseth 2022-02-07 12:45:30 +01:00 committed by GitHub
commit 7ab4ee1b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,8 @@ The address type comes in two flavours, which are largely identical:
- ``address payable``: Same as ``address``, but with the additional members ``transfer`` and ``send``.
The idea behind this distinction is that ``address payable`` is an address you can send Ether to,
while a plain ``address`` cannot be sent Ether.
while you are not supposed to send Ether to a plain ``address``, for example because it might be a smart contract
that was not built to accept Ether.
Type conversions: