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:
parent
b5f3511c1c
commit
6d02aa23d9
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user