Skip to content

Commit

Permalink
chore[docs]: add method_id to abi_encode signature (#4355)
Browse files Browse the repository at this point in the history
this commit adds the missing `method_id` parameter to the
function signature of `abi_encode` in the documentation
  • Loading branch information
pcaversaccio authored Nov 19, 2024
1 parent c32b9b4 commit dbf9fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/built-in-functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ Utilities
>>> ExampleContract.foo()
0xa9059cbb

.. py:function:: abi_encode(*args, ensure_tuple: bool = True) -> Bytes[<depends on input>]
.. py:function:: abi_encode(*args, ensure_tuple: bool = True, method_id: Bytes[4] = None) -> Bytes[<depends on input>]
Takes a variable number of args as input, and returns the ABIv2-encoded bytestring. Used for packing arguments to raw_call, EIP712 and other cases where a consistent and efficient serialization method is needed.
Once this function has seen more use we provisionally plan to put it into the ``ethereum.abi`` namespace.
Expand Down

0 comments on commit dbf9fa0

Please sign in to comment.