diff options
author | chriseth <chris@ethereum.org> | 2018-04-16 17:05:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-16 17:05:05 +0800 |
commit | d8030c9b2ad0965d7de2637982005da9f4b6b93a (patch) | |
tree | ba5b88844c5b598b1c59362b4bad302b747ce390 /docs/types.rst | |
parent | 73ca3e8a1eaf929dac60ce0a154975fa46b2040e (diff) | |
parent | 05c5ab19fb67849d806d8de1b9c3a2982d37f721 (diff) | |
download | dexon-solidity-d8030c9b2ad0965d7de2637982005da9f4b6b93a.tar dexon-solidity-d8030c9b2ad0965d7de2637982005da9f4b6b93a.tar.gz dexon-solidity-d8030c9b2ad0965d7de2637982005da9f4b6b93a.tar.bz2 dexon-solidity-d8030c9b2ad0965d7de2637982005da9f4b6b93a.tar.lz dexon-solidity-d8030c9b2ad0965d7de2637982005da9f4b6b93a.tar.xz dexon-solidity-d8030c9b2ad0965d7de2637982005da9f4b6b93a.tar.zst dexon-solidity-d8030c9b2ad0965d7de2637982005da9f4b6b93a.zip |
Merge pull request #3880 from ethereum/addressMemberDocAndWarn
Improve documentation and warning about accessing contract members in…
Diffstat (limited to 'docs/types.rst')
-rw-r--r-- | docs/types.rst | 4 |
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. |