Skip to content

Commit

Permalink
Merge pull request #15064 from PatrickAlphaC/patch-2
Browse files Browse the repository at this point in the history
Correct minor inconsistency in cheatsheet.rst
  • Loading branch information
matheusaaguiar authored May 2, 2024
2 parents b901aff + 61ced0d commit ae79d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/cheatsheet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ABI Encoding and Decoding Functions
- ``abi.encodeWithSelector(bytes4 selector, ...) returns (bytes memory)``: :ref:`ABI <ABI>`-encodes
the given arguments starting from the second and prepends the given four-byte selector
- ``abi.encodeCall(function functionPointer, (...)) returns (bytes memory)``: ABI-encodes a call to ``functionPointer`` with the arguments found in the
tuple. Performs a full type-check, ensuring the types match the function signature. Result equals ``abi.encodeWithSelector(functionPointer.selector, (...))``
tuple. Performs a full type-check, ensuring the types match the function signature. Result equals ``abi.encodeWithSelector(functionPointer.selector, ...)``
- ``abi.encodeWithSignature(string memory signature, ...) returns (bytes memory)``: Equivalent
to ``abi.encodeWithSelector(bytes4(keccak256(bytes(signature))), ...)``

Expand Down

0 comments on commit ae79d13

Please sign in to comment.