mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixed example address payable
This commit is contained in:
parent
4a49e6e48f
commit
b4a527039f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user