fixed example address payable

This commit is contained in:
José López 2021-11-03 20:21:31 -03:00
parent 4a49e6e48f
commit b4a527039f

View File

@ -241,7 +241,7 @@ and to send Ether (in units of wei) to a payable address using the ``transfer``
.. code-block:: solidity
:force:
address payable x = address(0x123);
address payable x = payable(0x123);
address myAddress = address(this);
if (x.balance < 10 && myAddress.balance >= 10) x.transfer(10);