Skip to content

Commit

Permalink
fix: more 404
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Oct 31, 2023
1 parent 8d23ebd commit ebcdf9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ape/api/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def sign_message(self, msg: SignableMessage) -> Optional[MessageSignature]:
Sign a message.
Args:
msg (:class:`~ape.types.signatures.SignableMessage`): The message to sign.
msg (:class:`~ape.types.signatures. SignableMessage`): The message to sign.
See these
`docs <https://eth-account.readthedocs.io/en/stable/eth_account.html#eth_account.messages.SignableMessage>`__ # noqa: E501
for more type information on this type.
Expand Down
5 changes: 5 additions & 0 deletions src/ape/types/signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

from ape.types import AddressType

# Fix 404 in doc link.
SignableMessage.__doc__ = SignableMessage.__doc__.replace(
"EIP-191_", "`EIP-191 <https://eips.ethereum.org/EIPS/eip-191>`__"
)


def _left_pad_bytes(val: bytes, num_bytes: int) -> bytes:
return b"\x00" * (num_bytes - len(val)) + val if len(val) < num_bytes else val
Expand Down

0 comments on commit ebcdf9d

Please sign in to comment.