aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-09-21 02:42:27 +0800
committerGitHub <noreply@github.com>2018-09-21 02:42:27 +0800
commit9ee213a5363266548372b0d87b9d753f5e046dcd (patch)
tree1c55365331f0530b6a677d8ce00f56f582cbff4e
parentab93c94081a4f2849572e7432c63f9b449d5b6a5 (diff)
parente785fe0c078961f9580746f30cbaaf11c1e3c42b (diff)
downloaddexon-solidity-9ee213a5363266548372b0d87b9d753f5e046dcd.tar.gz
dexon-solidity-9ee213a5363266548372b0d87b9d753f5e046dcd.tar.zst
dexon-solidity-9ee213a5363266548372b0d87b9d753f5e046dcd.zip
Merge pull request #5024 from ethereum/abi_types_2
Add struct->tuple to the Solidity->ABI types table
-rw-r--r--docs/abi-spec.rst13
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst
index 8a5e2f5c..4e7c88d0 100644
--- a/docs/abi-spec.rst
+++ b/docs/abi-spec.rst
@@ -78,13 +78,14 @@ Types can be combined to a tuple by enclosing them inside parentheses, separated
It is possible to form tuples of tuples, arrays of tuples and so on. It is also possible to form zero-tuples (where ``n == 0``).
-.. note::
- Solidity supports all the types presented above with the same names with the exception of tuples. The ABI tuple type is utilised for encoding Solidity ``structs``.
-
Mapping Solidity to ABI types
-----------------------------
-The following table shows on the left column Solidity types that are not part of the ABI,
-and on the right column the ABI type that they map to.
+
+Solidity supports all the types presented above with the same names with the
+exception of tuples. On the other hand, some Solidity types are not supported
+by the ABI. The following table shows on the left column Solidity types that
+are not part of the ABI, and on the right column the ABI types that represent
+them.
+-------------------------------+-----------------------------------------------------------------------------+
| Solidity | ABI |
@@ -98,6 +99,8 @@ and on the right column the ABI type that they map to.
| |For example, an ``enum`` of 255 values or less is mapped to ``uint8`` and |
| |an ``enum`` of 256 values is mapped to ``uint16``. |
+-------------------------------+-----------------------------------------------------------------------------+
+|:ref:`struct<structs>` |``tuple`` |
++-------------------------------+-----------------------------------------------------------------------------+
Formal Specification of the Encoding
====================================