aboutsummaryrefslogtreecommitdiffstats
path: root/docs/abi-spec.rst
diff options
context:
space:
mode:
authorLi Xuanji <xuanji@gmail.com>2018-01-23 06:34:58 +0800
committerGitHub <noreply@github.com>2018-01-23 06:34:58 +0800
commitd555c82db4351f6049defbe64429d5f342f44a5f (patch)
treed6034d23aadfc4e17a07fb67044dfe38823f5c9b /docs/abi-spec.rst
parente5def2da3d9b6cffbff42e2c9e1941831d2fe5ea (diff)
downloaddexon-solidity-d555c82db4351f6049defbe64429d5f342f44a5f.tar.gz
dexon-solidity-d555c82db4351f6049defbe64429d5f342f44a5f.tar.zst
dexon-solidity-d555c82db4351f6049defbe64429d5f342f44a5f.zip
clarify `address` in function selector
I found that the canonical form for `address` in computing the function selector calldata tag is `uint160`. Update the abi specs to explicitly mention this.
Diffstat (limited to 'docs/abi-spec.rst')
-rw-r--r--docs/abi-spec.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst
index b81e35a6..90e2825e 100644
--- a/docs/abi-spec.rst
+++ b/docs/abi-spec.rst
@@ -40,9 +40,9 @@ The following elementary types exist:
- ``int<M>``: two's complement signed integer type of ``M`` bits, ``0 < M <= 256``, ``M % 8 == 0``.
-- ``address``: equivalent to ``uint160``, except for the assumed interpretation and language typing.
+- ``address``: equivalent to ``uint160``, except for the assumed interpretation and language typing. (this is shorthand not to be used for computing the function selector)
-- ``uint``, ``int``: synonyms for ``uint256``, ``int256`` respectively (this shorthand not to be used for computing the function selector).
+- ``uint``, ``int``: synonyms for ``uint256``, ``int256`` respectively (this is shorthand not to be used for computing the function selector).
- ``bool``: equivalent to ``uint8`` restricted to the values 0 and 1