1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 20:19:23 +00:00

core/wallet: fix 'pubkeys' type to be list

This commit is contained in:
Roman Zeyde 2019-08-17 21:25:11 +03:00
parent bb2556a22c
commit acfd6b7771

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"