From 32965807a7f4914e184d7093048beb791cb32376 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 19 Sep 2017 10:22:28 +0200 Subject: Fix ABI spec regarding arrays. --- docs/abi-spec.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst index 97320c7f..b750deee 100644 --- a/docs/abi-spec.rst +++ b/docs/abi-spec.rst @@ -58,7 +58,7 @@ The following elementary types exist: The following (fixed-size) array type exists: -- ``[M]``: a fixed-length array of the given fixed-length type. +- ``[M]``: a fixed-length array of ``M`` elements, ``M > 0``, of the given type. The following non-fixed-size types exist: @@ -66,7 +66,7 @@ The following non-fixed-size types exist: - ``string``: dynamic sized unicode string assumed to be UTF-8 encoded. -- ``[]``: a variable-length array of the given fixed-length type. +- ``[]``: a variable-length array of elements of the given type. Types can be combined to a tuple by enclosing a finite non-negative number of them inside parentheses, separated by commas: -- cgit From a061e8db3463114171f3bd26831b9ac17019080a Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 19 Sep 2017 11:02:14 +0100 Subject: Clarify shorthand notation in ABI --- docs/abi-spec.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst index b750deee..29d98645 100644 --- a/docs/abi-spec.rst +++ b/docs/abi-spec.rst @@ -42,7 +42,7 @@ The following elementary types exist: - ``address``: equivalent to ``uint160``, except for the assumed interpretation and language typing. -- ``uint``, ``int``: synonyms for ``uint256``, ``int256`` respectively (not to be used for computing the function selector). +- ``uint``, ``int``: synonyms for ``uint256``, ``int256`` respectively (this shorthand not to be used for computing the function selector). - ``bool``: equivalent to ``uint8`` restricted to the values 0 and 1 @@ -50,7 +50,7 @@ The following elementary types exist: - ``ufixedx``: unsigned variant of ``fixedx``. -- ``fixed``, ``ufixed``: synonyms for ``fixed128x19``, ``ufixed128x19`` respectively (not to be used for computing the function selector). +- ``fixed``, ``ufixed``: synonyms for ``fixed128x19``, ``ufixed128x19`` respectively (this shorthand not to be used for computing the function selector). - ``bytes``: binary type of ``M`` bytes, ``0 < M <= 32``. -- cgit