Skip to content

Commit

Permalink
Fixing some oopsies.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoccmartins committed Jan 23, 2025
1 parent 21b7dbc commit b77a6c0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/swap/handle_check_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@ void swap_handle_check_address(check_address_parameters_t *params) {
if (!address_from_pubkey(public_key, address, sizeof(address))) {

Check warning

Code scanning / CodeQL

Implicit function declaration Warning

Function call implicitly declares 'address_from_pubkey'.
return;
}
char g_address[ADDRESS_STRING_LENGTH + 1];
if (0 > format_prefixed_hex(address, sizeof(address), g_address, sizeof(g_address))) {
char prefixed_address[ADDRESS_STRING_LENGTH + 1];
if (0 > format_prefixed_hex(address, sizeof(address), prefixed_address, sizeof(prefixed_address))) {

Check warning

Code scanning / CodeQL

Implicit function declaration Warning

Function call implicitly declares 'format_prefixed_hex'.
return;
}

//PRINTF("address_to_check: %s\n", params->address_to_check);
//PRINTF("g_address: %s\n", g_address);
PRINTF("address_to_check: %s\n", params->address_to_check);
PRINTF("prefixed_address: %s\n", prefixed_address);
// Compare the strings
if (strcmp(params->address_to_check, g_address) != 0) {
PRINTF("address_to_check does not match the address in the device\n");
params->result = 1;
if (strcmp(params->address_to_check, prefixed_address) != 0) {
PRINTF("addresses does not match\n");
} else {
PRINTF("addess_to_check matches within the addresses in the device\n");
PRINTF("addesses match\n");

Check failure on line 80 in src/swap/handle_check_address.c

View workflow job for this annotation

GitHub Actions / Check misspellings

addesses ==> addresses
params->result = 1;
}
}
#endif

0 comments on commit b77a6c0

Please sign in to comment.