diff options
author | Franco Victorio <victorio.franco@gmail.com> | 2018-08-16 02:42:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-16 02:42:46 +0800 |
commit | 4209953b37f44e8fec66d3a5b3113a29c9db85b0 (patch) | |
tree | 66d9f826aae3e1be4a07ada912582933ba852fe6 /docs/units-and-global-variables.rst | |
parent | 2ed793c4d345de909332651145265a21a04e92d1 (diff) | |
download | dexon-solidity-4209953b37f44e8fec66d3a5b3113a29c9db85b0.tar.gz dexon-solidity-4209953b37f44e8fec66d3a5b3113a29c9db85b0.tar.zst dexon-solidity-4209953b37f44e8fec66d3a5b3113a29c9db85b0.zip |
Add missing parentheses in ABI Encoding section
Diffstat (limited to 'docs/units-and-global-variables.rst')
-rw-r--r-- | docs/units-and-global-variables.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst index ceabee4e..2c571a45 100644 --- a/docs/units-and-global-variables.rst +++ b/docs/units-and-global-variables.rst @@ -103,7 +103,7 @@ ABI Encoding and Decoding Functions - ``abi.encode(...) returns (bytes)``: ABI-encodes the given arguments - ``abi.encodePacked(...) returns (bytes)``: Performs :ref:`packed encoding <abi_packed_mode>` of the given arguments - ``abi.encodeWithSelector(bytes4 selector, ...) returns (bytes)``: ABI-encodes the given arguments starting from the second and prepends the given four-byte selector -- ``abi.encodeWithSignature(string signature, ...) returns (bytes)``: Equivalent to ``abi.encodeWithSelector(bytes4(keccak256(bytes(signature)), ...)``` +- ``abi.encodeWithSignature(string signature, ...) returns (bytes)``: Equivalent to ``abi.encodeWithSelector(bytes4(keccak256(bytes(signature))), ...)``` .. note:: These encoding functions can be used to craft data for function calls without actually |