1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-08 14:31:06 +00:00

Raise wire.DataError when deriving invalid address type

This commit is contained in:
gabrielkerekes 2020-07-30 12:06:45 +02:00 committed by Tomas Susanka
parent b5f3511c1c
commit 6d02aa23d9

View File

@ -220,7 +220,7 @@ def _derive_shelley_address(
elif parameters.address_type == CardanoAddressType.REWARD:
address = _derive_reward_address(keychain, parameters.address_n, network_id)
else:
raise ValueError
raise wire.DataError("Invalid address type!")
return address