mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-08 22:40:59 +00:00
tezos: delegating contract in origination
Signed-off-by: Adrian Matejov <adrian.matejov@simplestaking.com>
This commit is contained in:
parent
e6f297075a
commit
002fcd1c77
@ -27,6 +27,12 @@ async def sign_tx(ctx, msg):
|
||||
elif msg.origination is not None:
|
||||
source = _get_address_from_contract(msg.origination.source)
|
||||
await require_confirm_origination(ctx, source)
|
||||
|
||||
# if we are immediately delegating contract
|
||||
if msg.origination.delegate is not None:
|
||||
delegate = _get_address_by_tag(msg.origination.delegate)
|
||||
await require_confirm_delegation_baker(ctx, delegate)
|
||||
|
||||
await require_confirm_origination_fee(
|
||||
ctx, msg.origination.balance, msg.origination.fee
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user