1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00

Merge pull request #422 from romanz/typing

core/wallet: fix 'pubkeys' type to be list
This commit is contained in:
Tomas Susanka 2019-08-21 10:48:00 +02:00 committed by GitHub
commit debb8ec478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ def get_address(
raise AddressError(FailureType.ProcessError, "Invalid script type")
def address_multisig_p2sh(pubkeys: bytes, m: int, coin: CoinInfo):
def address_multisig_p2sh(pubkeys: list, m: int, coin: CoinInfo):
if coin.address_type_p2sh is None:
raise AddressError(
FailureType.ProcessError, "Multisig not enabled on this coin"
@ -95,7 +95,7 @@ def address_multisig_p2sh(pubkeys: bytes, m: int, coin: CoinInfo):
return address_p2sh(redeem_script_hash, coin)
def address_multisig_p2wsh_in_p2sh(pubkeys: bytes, m: int, coin: CoinInfo):
def address_multisig_p2wsh_in_p2sh(pubkeys: list, m: int, coin: CoinInfo):
if coin.address_type_p2sh is None:
raise AddressError(
FailureType.ProcessError, "Multisig not enabled on this coin"
@ -105,7 +105,7 @@ def address_multisig_p2wsh_in_p2sh(pubkeys: bytes, m: int, coin: CoinInfo):
return address_p2wsh_in_p2sh(witness_script_hash, coin)
def address_multisig_p2wsh(pubkeys: bytes, m: int, hrp: str):
def address_multisig_p2wsh(pubkeys: list, m: int, hrp: str):
if not hrp:
raise AddressError(
FailureType.ProcessError, "Multisig not enabled on this coin"