mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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.
This commit is contained in:
parent
e5def2da3d
commit
d555c82db4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user