1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-01 04:49:31 +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,6 +54,7 @@ def _update_raw_tx(transaction, pubkey):
# For CastVotes transactions, recipientId should be equal to transaction # For CastVotes transactions, recipientId should be equal to transaction
# creator address. # creator address.
if transaction.type == LiskTransactionType.CastVotes: if transaction.type == LiskTransactionType.CastVotes:
if not transaction.recipient_id:
transaction.recipient_id = get_address_from_public_key(pubkey) transaction.recipient_id = get_address_from_public_key(pubkey)
return transaction return transaction