From 2ada9683dd54a10f61816814e79f15860f8feb2e Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 22 Feb 2018 15:24:14 +0100 Subject: [PATCH] Use the term "trailing zero-bytes". --- docs/abi-spec.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst index 58b88a07a..07c8e0ce7 100644 --- a/docs/abi-spec.rst +++ b/docs/abi-spec.rst @@ -163,7 +163,7 @@ on the type of ``X`` being - ``fixed``: as in the ``fixed128x19`` case - ``ufixedx``: ``enc(X)`` is ``enc(X * 10**N)`` where ``X * 10**N`` is interpreted as a ``uint256``. - ``ufixed``: as in the ``ufixed128x19`` case -- ``bytes``: ``enc(X)`` is the sequence of bytes in ``X`` padded with zero-bytes on the _right_ to a length of 32. +- ``bytes``: ``enc(X)`` is the sequence of bytes in ``X`` padded with trailing zero-bytes to a length of 32 bytes. Note that for any ``X``, ``len(enc(X))`` is a multiple of 32.