aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorFranco Victorio <victorio.franco@gmail.com>2018-08-16 02:42:46 +0800
committerGitHub <noreply@github.com>2018-08-16 02:42:46 +0800
commit4209953b37f44e8fec66d3a5b3113a29c9db85b0 (patch)
tree66d9f826aae3e1be4a07ada912582933ba852fe6 /docs
parent2ed793c4d345de909332651145265a21a04e92d1 (diff)
downloaddexon-solidity-4209953b37f44e8fec66d3a5b3113a29c9db85b0.tar.gz
dexon-solidity-4209953b37f44e8fec66d3a5b3113a29c9db85b0.tar.zst
dexon-solidity-4209953b37f44e8fec66d3a5b3113a29c9db85b0.zip
Add missing parentheses in ABI Encoding section
Diffstat (limited to 'docs')
-rw-r--r--docs/units-and-global-variables.rst2
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