mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-25 07:58:12 +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)
|
delegate = _get_address_by_tag(msg.delegation.delegate)
|
||||||
|
|
||||||
if source != delegate:
|
if source != delegate:
|
||||||
to = _get_address_by_tag(msg.delegation.delegate)
|
await require_confirm_delegation_baker(ctx, delegate)
|
||||||
await require_confirm_delegation_baker(ctx, to)
|
|
||||||
await require_confirm_set_delegate(ctx, msg.delegation.fee)
|
await require_confirm_set_delegate(ctx, msg.delegation.fee)
|
||||||
# if account registers itself as a delegate
|
# if account registers itself as a delegate
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user