aboutsummaryrefslogtreecommitdiffstats
path: root/docs/abi-spec.rst
diff options
context:
space:
mode:
authorwalter-weinmann <walter.weinmann@gmail.com>2017-10-29 18:57:01 +0800
committerwalter-weinmann <walter.weinmann@gmail.com>2017-10-29 18:58:00 +0800
commitfcf66721da116c7f95c9eba9cef056bbd0f6cee6 (patch)
tree239e5023004e5904b07fb789ffdd321a4c98979b /docs/abi-spec.rst
parentf9b240096f1c92de88ad10fa7c6c9101ecd9eba5 (diff)
downloaddexon-solidity-fcf66721da116c7f95c9eba9cef056bbd0f6cee6.tar.gz
dexon-solidity-fcf66721da116c7f95c9eba9cef056bbd0f6cee6.tar.zst
dexon-solidity-fcf66721da116c7f95c9eba9cef056bbd0f6cee6.zip
abi-spec: example code doesn't fit grammar.txt.
Diffstat (limited to 'docs/abi-spec.rst')
-rw-r--r--docs/abi-spec.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst
index 43757d24..77d15026 100644
--- a/docs/abi-spec.rst
+++ b/docs/abi-spec.rst
@@ -130,14 +130,14 @@ on the type of ``X`` being
Note that in the dynamic case, ``head(X(i))`` is well-defined since the lengths of
the head parts only depend on the types and not the values. Its value is the offset
of the beginning of ``tail(X(i))`` relative to the start of ``enc(X)``.
-
+
- ``T[k]`` for any ``T`` and ``k``:
``enc(X) = enc((X[0], ..., X[k-1]))``
-
+
i.e. it is encoded as if it were a tuple with ``k`` elements
of the same type.
-
+
- ``T[]`` where ``X`` has ``k`` elements (``k`` is assumed to be of type ``uint256``):
``enc(X) = enc(k) enc([X[1], ..., X[k]])``
@@ -326,7 +326,7 @@ An event description is a JSON object with fairly similar fields:
- ``anonymous``: ``true`` if the event was declared as ``anonymous``.
-For example,
+For example,
::
@@ -334,8 +334,8 @@ For example,
contract Test {
function Test(){ b = 0x12345678901234567890123456789012; }
- event Event(uint indexed a, bytes32 b)
- event Event2(uint indexed a, bytes32 b)
+ event Event(uint indexed a, bytes32 b);
+ event Event2(uint indexed a, bytes32 b);
function foo(uint a) { Event(a, b); }
bytes32 b;
}