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

tezos: removed duplicated code

Signed-off-by: Adrian Matejov <adrian.matejov@simplestaking.com>
This commit is contained in:
Adrian Matejov 2018-09-03 16:38:35 +02:00 committed by Tomas Susanka
parent f0f6807e4f
commit e009c0ca22

View File

@ -40,8 +40,7 @@ async def tezos_sign_tx(ctx, msg):
delegate = _get_address_by_tag(msg.delegation.delegate)
if source != delegate:
to = _get_address_by_tag(msg.delegation.delegate)
await require_confirm_delegation_baker(ctx, to)
await require_confirm_delegation_baker(ctx, delegate)
await require_confirm_set_delegate(ctx, msg.delegation.fee)
# if account registers itself as a delegate
else: