mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add contract type to types doc
This commit is contained in:
parent
ef269bf40d
commit
a6cb6777c9
@ -192,12 +192,19 @@ The ``.gas()`` option is available on all three methods, while the ``.value()``
|
|||||||
.. note::
|
.. note::
|
||||||
The use of ``callcode`` is discouraged and will be removed in the future.
|
The use of ``callcode`` is discouraged and will be removed in the future.
|
||||||
|
|
||||||
|
.. index:: ! contract type, ! type; contract
|
||||||
|
|
||||||
|
.. _contract_types:
|
||||||
|
|
||||||
Contract Types
|
Contract Types
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
Every :ref:`contract<contracts>` defines its own type. Contracts can be implicitly converted
|
Every :ref:`contract<contracts>` defines its own type. Contracts can be implicitly converted
|
||||||
to contracts they inherit from. They can be explicitly converted from and to ``address`` types.
|
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'<creating-contracts>` section.
|
||||||
|
|
||||||
The data representation of a contract is identical to that of the ``address`` type and
|
The data representation of a contract is identical to that of the ``address`` type and
|
||||||
this type is also used in the :ref:`ABI<ABI>`.
|
this type is also used in the :ref:`ABI<ABI>`.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user