mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 14:28:07 +00:00
core/wallet: properly check decred input
This commit is contained in:
parent
6274cfdf8b
commit
163220e4b7
@ -203,7 +203,7 @@ def sanitize_tx_input(tx: TransactionType, coin: CoinInfo) -> TxInputType:
|
|||||||
raise SigningError(
|
raise SigningError(
|
||||||
FailureType.DataError, "Input's address_n provided but not expected.",
|
FailureType.DataError, "Input's address_n provided but not expected.",
|
||||||
)
|
)
|
||||||
if txi.decred_script_version or txi.decred_script_version and not coin.decred:
|
if (txi.decred_script_version or txi.decred_script_version) and not coin.decred:
|
||||||
raise SigningError(
|
raise SigningError(
|
||||||
FailureType.DataError,
|
FailureType.DataError,
|
||||||
"Decred details provided but Decred coin not specified.",
|
"Decred details provided but Decred coin not specified.",
|
||||||
|
Loading…
Reference in New Issue
Block a user