Fix last compilation warnings
Signed-off-by: pscott <scott.piriou@ledger.fr>
This commit is contained in:
committed by
pscott
parent
46d5b45e9c
commit
c27d59d792
@@ -209,7 +209,7 @@ void erc20_plugin_call(int message, void *parameters) {
|
||||
msg->msg[0] = '0';
|
||||
msg->msg[1] = 'x';
|
||||
getEthAddressStringFromBinary(context->destinationAddress,
|
||||
(uint8_t *) msg->msg + 2,
|
||||
msg->msg + 2,
|
||||
msg->pluginSharedRW->sha3,
|
||||
chainConfig);
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ typedef struct eth2_deposit_parameters_t {
|
||||
static int getEthDisplayableAddress(char *out, uint8_t *in, cx_sha3_t *sha3) {
|
||||
out[0] = '0';
|
||||
out[1] = 'x';
|
||||
getEthAddressStringFromBinary(in, (uint8_t *) out + 2, sha3, chainConfig);
|
||||
getEthAddressStringFromBinary(in, out + 2, sha3, chainConfig);
|
||||
|
||||
uint8_t destinationLen = strlen(out) + 1; // Adding one to account for \0.
|
||||
|
||||
|
||||
@@ -284,7 +284,7 @@ void starkware_print_eth_address(uint8_t *address, char *destination) {
|
||||
destination[0] = '0';
|
||||
destination[1] = 'x';
|
||||
getEthAddressStringFromBinary(address,
|
||||
(uint8_t *) (destination + 2),
|
||||
destination + 2,
|
||||
&global_sha3,
|
||||
chainConfig);
|
||||
destination[42] = '\0';
|
||||
@@ -369,7 +369,7 @@ void starkware_get_source_address(char *destination) {
|
||||
destination[0] = '0';
|
||||
destination[1] = 'x';
|
||||
getEthAddressStringFromKey(&publicKey,
|
||||
(uint8_t *) (destination + 2),
|
||||
destination + 2,
|
||||
&global_sha3,
|
||||
chainConfig);
|
||||
destination[42] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user