Skip to content

Commit

Permalink
Merge pull request #165 from AlbertoCentonze/master
Browse files Browse the repository at this point in the history
docs: added alias function description
  • Loading branch information
charles-cooper authored Feb 16, 2024
2 parents ef3f909 + 189f14d commit 2279ec7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,13 @@ Low-Level Functionality

The global py-evm chain instance.

.. method:: alias(address: str, name: str) -> None

Associates an alias with an address. This is useful to make the address more human-readable in tracebacks.

:param address: The address to alias.
:param name: The alias to use for the address.

.. method:: generate_address(alias: str | None = None) -> str

Generate an address and optionally alias it.
Expand Down

0 comments on commit 2279ec7

Please sign in to comment.