From c353997a897cc1709db38bcc90f2427ef0348694 Mon Sep 17 00:00:00 2001 From: Andrew Toth Date: Mon, 16 Sep 2024 10:09:11 -0400 Subject: [PATCH] fix: type errors --- core/src/apps/bitcoin/sign_tx/bitcoin.py | 2 +- core/src/apps/bitcoin/sign_tx/decred.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/apps/bitcoin/sign_tx/bitcoin.py b/core/src/apps/bitcoin/sign_tx/bitcoin.py index 7ce448066c..501cdef855 100644 --- a/core/src/apps/bitcoin/sign_tx/bitcoin.py +++ b/core/src/apps/bitcoin/sign_tx/bitcoin.py @@ -640,7 +640,7 @@ class Bitcoin: return public_key, signature - def sign_taproot_input(self, i: int, txi: TxInput) -> bytes: + def sign_taproot_input(self, i: int, txi: TxInput) -> tuple[bytes, bytes]: from ..common import bip340_sign if txi.multisig: diff --git a/core/src/apps/bitcoin/sign_tx/decred.py b/core/src/apps/bitcoin/sign_tx/decred.py index 39b99380ab..5d4a4f44f6 100644 --- a/core/src/apps/bitcoin/sign_tx/decred.py +++ b/core/src/apps/bitcoin/sign_tx/decred.py @@ -124,6 +124,7 @@ class DecredSigHasher: i: int, tx: SignTx | PrevTx, sighash_type: SigHashType, + leaf_hash: bytes | None, ) -> bytes: raise NotImplementedError