aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-04-13 23:28:08 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-04-14 00:26:24 +0800
commit05c5ab19fb67849d806d8de1b9c3a2982d37f721 (patch)
treeb6be93fd681d43120f2593754f88da7e2cf7dbc8 /docs
parent2001cc6bdca87d715380b15f11c797666528e040 (diff)
downloaddexon-solidity-05c5ab19fb67849d806d8de1b9c3a2982d37f721.tar.gz
dexon-solidity-05c5ab19fb67849d806d8de1b9c3a2982d37f721.tar.zst
dexon-solidity-05c5ab19fb67849d806d8de1b9c3a2982d37f721.zip
Improve documentation and warning about accessing contract members inherited from address.
Diffstat (limited to 'docs')
-rw-r--r--docs/types.rst4
1 files changed, 2 insertions, 2 deletions
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.