1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 15:30:55 +00:00

lisk: remove unnecessary allocation

This commit is contained in:
Pavol Rusnak 2018-09-28 10:41:30 +02:00
parent 9afaeff36f
commit 86118986bc
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -87,10 +87,8 @@ static void lisk_update_raw_tx(const HDNode *node, LiskSignTx *msg)
// For CastVotes transactions, recipientId should be equal to transaction creator address.
if(msg->transaction.type == LiskTransactionType_CastVotes && !msg->transaction.has_recipient_id) {
char address[MAX_LISK_ADDRESS_SIZE];
lisk_get_address_from_public_key(&node->public_key[1], address);
memcpy(msg->transaction.recipient_id, address, sizeof(address));
msg->transaction.has_recipient_id = true;
lisk_get_address_from_public_key(&node->public_key[1], msg->transaction.recipient_id);
}
}