Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
fix(core): Fix incorrect expression in send_trytes
Browse files Browse the repository at this point in the history
The copied size at line 115 in `send_tytes()` should
be the size of `flex_trit_t` instead of `hash8019_array_p`
  • Loading branch information
howjmay committed Jan 13, 2020
1 parent 59b604d commit be67330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accelerator/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ status_t ta_send_trytes(const iota_config_t* const iconf, const iota_client_serv
}

// set the value of attach_res->trytes as output trytes result
memcpy(trytes, attach_res->trytes, hash_array_len(attach_res->trytes) * sizeof(hash8019_array_p));
memcpy(trytes, attach_res->trytes, hash_array_len(attach_res->trytes) * sizeof(flex_trit_t));

done:
get_transactions_to_approve_req_free(&tx_approve_req);
Expand Down

0 comments on commit be67330

Please sign in to comment.