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

lisk: fix _update_raw_tx function for second signature calculation (#348)

This commit is contained in:
alepop 2018-09-28 11:43:18 +03:00 committed by Pavol Rusnak
parent 25d00ab08c
commit e1eb405ed7

View File

@ -54,7 +54,8 @@ def _update_raw_tx(transaction, pubkey):
# For CastVotes transactions, recipientId should be equal to transaction
# creator address.
if transaction.type == LiskTransactionType.CastVotes:
transaction.recipient_id = get_address_from_public_key(pubkey)
if not transaction.recipient_id:
transaction.recipient_id = get_address_from_public_key(pubkey)
return transaction