From d9fee292f493d6fa97f45a4dd41c8f65d189ce32 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Wed, 3 Jan 2024 22:35:55 +0200 Subject: [PATCH] Fix get_tx_info() type hint and doc --- src/jmclient/wallet_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jmclient/wallet_utils.py b/src/jmclient/wallet_utils.py index 5dccab5..be6540b 100644 --- a/src/jmclient/wallet_utils.py +++ b/src/jmclient/wallet_utils.py @@ -365,12 +365,12 @@ class WalletView(WalletViewBase): json_serialized.update(self.get_fmt_balance_json()) return json_serialized -def get_tx_info(txid: str, tx_cache: Optional[dict] = None) -> Tuple[ +def get_tx_info(txid: bytes, tx_cache: Optional[dict] = None) -> Tuple[ bool, int, int, dict, int, btc.CTransaction]: """ Retrieve some basic information about the given transaction. - :param txid: txid as hex-str + :param txid: txid as binary :param tx_cache: optional cache (dictionary) for get_transaction results :return: tuple is_coinjoin: bool