Skip to content

Commit

Permalink
fix: duplicate types
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshultz committed Oct 20, 2024
1 parent b424793 commit 54ce331
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ledgereth/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@
from ledgereth.comms import Dongle, dongle_send_data, init_dongle
from ledgereth.constants import DATA_CHUNK_SIZE, DEFAULT_PATH_STRING
from ledgereth.objects import SignedMessage, SignedTypedMessage
from ledgereth.types import Text
from ledgereth.utils import (
chunks,
is_bip32_path,
parse_bip32_path,
)

AnyText = str | bytes


def sign_message(
message: AnyText,
message: Text,
sender_path: str = DEFAULT_PATH_STRING,
dongle: Dongle | None = None,
) -> SignedMessage:
Expand Down Expand Up @@ -91,8 +90,8 @@ def sign_message(


def sign_typed_data_draft(
domain_hash: AnyText,
message_hash: AnyText,
domain_hash: Text,
message_hash: Text,
sender_path: str = DEFAULT_PATH_STRING,
dongle: Dongle | None = None,
) -> SignedTypedMessage:
Expand Down

0 comments on commit 54ce331

Please sign in to comment.