From 54ce331033331fa1c7f3f54e8bfbc11debd7261a Mon Sep 17 00:00:00 2001 From: Mike Shultz Date: Sun, 20 Oct 2024 01:55:41 -0600 Subject: [PATCH] fix: duplicate types --- ledgereth/messages.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ledgereth/messages.py b/ledgereth/messages.py index 9662ae7..bd94f04 100644 --- a/ledgereth/messages.py +++ b/ledgereth/messages.py @@ -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: @@ -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: