From e1eb405ed7c5b573034d716cce156d1aa56cbcb1 Mon Sep 17 00:00:00 2001 From: alepop Date: Fri, 28 Sep 2018 11:43:18 +0300 Subject: [PATCH] lisk: fix _update_raw_tx function for second signature calculation (#348) --- src/apps/lisk/sign_tx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/lisk/sign_tx.py b/src/apps/lisk/sign_tx.py index ce7ece509..9e05b7de9 100644 --- a/src/apps/lisk/sign_tx.py +++ b/src/apps/lisk/sign_tx.py @@ -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