From 631794b72e6bb8c590368d2a2bd6eec9a31cc2e2 Mon Sep 17 00:00:00 2001 From: Chris Ward Date: Mon, 13 Aug 2018 12:34:05 +0200 Subject: Update from feedback --- docs/types.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'docs') 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` 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'` section. -- cgit v1.2.3