diff options
author | Chris Ward <chriswhward@gmail.com> | 2018-08-13 18:34:05 +0800 |
---|---|---|
committer | Chris Ward <chriswhward@gmail.com> | 2018-08-13 18:34:05 +0800 |
commit | 631794b72e6bb8c590368d2a2bd6eec9a31cc2e2 (patch) | |
tree | c1da99c00b9cab1a9f5094e4f869b62f65810a65 | |
parent | 40fbe9b86e089ded83d44d0f718c0a98dad69ace (diff) | |
download | dexon-solidity-631794b72e6bb8c590368d2a2bd6eec9a31cc2e2.tar.gz dexon-solidity-631794b72e6bb8c590368d2a2bd6eec9a31cc2e2.tar.zst dexon-solidity-631794b72e6bb8c590368d2a2bd6eec9a31cc2e2.zip |
Update from feedback
-rw-r--r-- | docs/types.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/types.rst b/docs/types.rst index ac6a8c85..d3656878 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -200,15 +200,18 @@ Contract Types -------------- Every :ref:`contract<contracts>` defines its own type. -Contracts can be implicitly converted to contracts they inherit from, -and can be explicitly converted from and to the ``address`` type. +You can implicitly convert contracts to contracts they inherit from, +and explicitly convert them to and from the ``address`` type. .. note:: Starting with version 0.5.0 contracts do not derive from the address type, but can still be explicitly converted to address. +If you declare a local variable of contract type (`MyContract c`), you can call +functions on that contract. Take care to assign it from somewhere that is the +same contract type. -Contracts can also be instantiated (which means they are newly created). You +You can also instantiate contracts (which means they are newly created). You can find more details in the :ref:`'Contracts via new'<creating-contracts>` section. |