mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-25 16:08:32 +00:00
lisk: remove unnecessary allocation
This commit is contained in:
parent
9afaeff36f
commit
86118986bc
@ -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.
|
// For CastVotes transactions, recipientId should be equal to transaction creator address.
|
||||||
if(msg->transaction.type == LiskTransactionType_CastVotes && !msg->transaction.has_recipient_id) {
|
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;
|
msg->transaction.has_recipient_id = true;
|
||||||
|
lisk_get_address_from_public_key(&node->public_key[1], msg->transaction.recipient_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user