Skip to content

Commit 34be07b

Browse files
authored
Merge pull request #13500 from supermassive/patch-2
Fix dynamic array spec
2 parents 3677c7a + faffe3e commit 34be07b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/abi-spec.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ on the type of ``X`` being
191191

192192
- ``T[]`` where ``X`` has ``k`` elements (``k`` is assumed to be of type ``uint256``):
193193

194-
``enc(X) = enc(k) enc([X[0], ..., X[k-1]])``
194+
``enc(X) = enc(k) enc((X[0], ..., X[k-1]))``
195195

196-
i.e. it is encoded as if it were an array of static size ``k``, prefixed with
196+
i.e. it is encoded as if it were a tuple with ``k`` elements of the same type (resp. an array of static size ``k``), prefixed with
197197
the number of elements.
198198

199199
- ``bytes``, of length ``k`` (which is assumed to be of type ``uint256``):

0 commit comments

Comments
 (0)