Changes after rebasing

This commit is contained in:
Chris Ward 2018-08-01 14:22:09 +02:00
parent a6cb6777c9
commit 3c919766e8

View File

@ -199,25 +199,31 @@ The ``.gas()`` option is available on all three methods, while the ``.value()``
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, defined by its smart
to contracts they inherit from. They can be explicitly converted from and to ``address`` types. contract that you can call from another contract. For example (where ``Token``
is a contract) ::
Contracts can also be instantiated (which here means they are newly created). You can find more details in Token token = new Token();
the :ref:`'Contracts via new'<creating-contracts>` section.
The data representation of a contract is identical to that of the ``address`` type and Contracts can be implicitly converted to contracts they inherit from, and can be explicitly converted from and to the ``address`` type.
this type is also used in the :ref:`ABI<ABI>`.
Contracts do not support any operators.
The members of contract types are the external functions of the contract including
public state variables.
.. note:: .. note::
Starting with version 0.5.0 contracts do not derive from the address type, but can still be explicitly converted to address. Starting with version 0.5.0 contracts do not derive from the address type, but can still be explicitly converted to address.
.. index:: byte array, bytes32
Contracts can also be instantiated (which 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 this type is also used in the :ref:`ABI<ABI>`.
Contracts do not support any operators.
The members of contract types are the external functions of the contract
including public state variables.
.. index:: byte array, bytes32
Fixed-size byte arrays Fixed-size byte arrays
---------------------- ----------------------