From 05c5ab19fb67849d806d8de1b9c3a2982d37f721 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Fri, 13 Apr 2018 17:28:08 +0200 Subject: Improve documentation and warning about accessing contract members inherited from address. --- docs/types.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/types.rst b/docs/types.rst index 07421bdf..cf8f91be 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -179,8 +179,8 @@ All three functions ``call``, ``delegatecall`` and ``callcode`` are very low-lev The ``.gas()`` option is available on all three methods, while the ``.value()`` option is not supported for ``delegatecall``. .. note:: - All contracts inherit the members of address, so it is possible to query the balance of the - current contract using ``this.balance``. + All contracts can be converted to ``address`` type, so it is possible to query the balance of the + current contract using ``address(this).balance``. .. note:: The use of ``callcode`` is discouraged and will be removed in the future. -- cgit v1.2.3