Fix dynamic array spec

This commit is contained in:
Anton Paymyshev 2022-09-08 17:50:44 +07:00 committed by GitHub
parent 548a4b4ac6
commit a39bce010e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ on the type of ``X`` being
- ``T[]`` where ``X`` has ``k`` elements (``k`` is assumed to be of type ``uint256``): - ``T[]`` where ``X`` has ``k`` elements (``k`` is assumed to be of type ``uint256``):
``enc(X) = enc(k) enc([X[0], ..., X[k-1]])`` ``enc(X) = enc(k) enc(([X[0], ..., X[k-1]]))``
i.e. it is encoded as if it were an array of static size ``k``, prefixed with i.e. it is encoded as if it were an array of static size ``k``, prefixed with
the number of elements. the number of elements.