From a6cb6777c9ff61097428ee0433390336e379e27a Mon Sep 17 00:00:00 2001 From: Chris Ward Date: Mon, 30 Jul 2018 12:41:15 +0200 Subject: Add contract type to types doc --- docs/types.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs') diff --git a/docs/types.rst b/docs/types.rst index 566c4c19..cab2ec5c 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -192,12 +192,19 @@ The ``.gas()`` option is available on all three methods, while the ``.value()`` .. note:: The use of ``callcode`` is discouraged and will be removed in the future. +.. index:: ! contract type, ! type; contract + +.. _contract_types: + Contract Types -------------- Every :ref:`contract` defines its own type. Contracts can be implicitly converted to contracts they inherit from. They can be explicitly converted from and to ``address`` types. +Contracts can also be instantiated (which here means they are newly created). You can find more details in +the :ref:`'Contracts via new'` section. + The data representation of a contract is identical to that of the ``address`` type and this type is also used in the :ref:`ABI`. -- cgit v1.2.3