Skip to content

Commit f4b1659

Browse files
authored
Merge pull request #13049 from josepot/nit/use-canonical-representation
nit: ABI docs use canonical representation
2 parents 30335c1 + 5575bb9 commit f4b1659

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/abi-spec.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ In total:
308308
Use of Dynamic Types
309309
====================
310310

311-
A call to a function with the signature ``f(uint,uint32[],bytes10,bytes)`` with values
311+
A call to a function with the signature ``f(uint256,uint32[],bytes10,bytes)`` with values
312312
``(0x123, [0x456, 0x789], "1234567890", "Hello, world!")`` is encoded in the following way:
313313

314314
We take the first four bytes of ``sha3("f(uint256,uint32[],bytes10,bytes)")``, i.e. ``0x8be65246``.
@@ -348,7 +348,7 @@ All together, the encoding is (newline after function selector and each 32-bytes
348348
000000000000000000000000000000000000000000000000000000000000000d
349349
48656c6c6f2c20776f726c642100000000000000000000000000000000000000
350350
351-
Let us apply the same principle to encode the data for a function with a signature ``g(uint[][],string[])``
351+
Let us apply the same principle to encode the data for a function with a signature ``g(uint256[][],string[])``
352352
with values ``([[1, 2], [3]], ["one", "two", "three"])`` but start from the most atomic parts of the encoding:
353353

354354
First we encode the length and data of the first embedded dynamic array ``[1, 2]`` of the first root array ``[[1, 2], [3]]``:
@@ -417,7 +417,7 @@ thus ``e = 0x00000000000000000000000000000000000000000000000000000000000000e0``.
417417

418418

419419
Note that the encodings of the embedded elements of the root arrays are not dependent on each other
420-
and have the same encodings for a function with a signature ``g(string[],uint[][])``.
420+
and have the same encodings for a function with a signature ``g(string[],uint256[][])``.
421421

422422
Then we encode the length of the first root array:
423423

0 commit comments

Comments
 (0)