From b4a527039faa4517ab94a5fdb49be67b330c002d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20L=C3=B3pez?= Date: Wed, 3 Nov 2021 20:21:31 -0300 Subject: [PATCH] fixed example address payable --- 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 c02eea8a9..f849f3f7e 100644 --- a/docs/types/value-types.rst +++ b/docs/types/value-types.rst @@ -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);