mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
tezos: removed duplicated code
Signed-off-by: Adrian Matejov <adrian.matejov@simplestaking.com>
This commit is contained in:
parent
f0f6807e4f
commit
e009c0ca22
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user