aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-10-29 21:28:34 +0800
committerGitHub <noreply@github.com>2017-10-29 21:28:34 +0800
commiteb140bc6d65c51ddabb02b32a412a215ca37aff9 (patch)
tree239e5023004e5904b07fb789ffdd321a4c98979b
parentf9b240096f1c92de88ad10fa7c6c9101ecd9eba5 (diff)
parentfcf66721da116c7f95c9eba9cef056bbd0f6cee6 (diff)
downloaddexon-solidity-eb140bc6d65c51ddabb02b32a412a215ca37aff9.tar.gz
dexon-solidity-eb140bc6d65c51ddabb02b32a412a215ca37aff9.tar.zst
dexon-solidity-eb140bc6d65c51ddabb02b32a412a215ca37aff9.zip
Merge pull request #3150 from walter-weinmann/develop
abi-spec: example code doesn't fit grammar.txt.
-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;
}