Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/btchip_apdu_hash_input_finalize_full.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ unsigned short btchip_apdu_hash_input_finalize_full_internal(
btchip_context_D.tmpCtx.output.changeInitialized = 1;
btchip_context_D.tmpCtx.output.changeAccepted = 0;

// if the bip44 change path provided is not canonical or its index are unsual, ask for user approval
// if the bip44 change path provided is not canonical or its index are unusual, ask for user approval
if(bip44_derivation_guard(transactionSummary->keyPath, true)) {
if (btchip_context_D.called_from_swap) {
PRINTF("In swap mode only standart path is allowed\n");
PRINTF("In swap mode only standard path is allowed\n");
sw = BTCHIP_SW_CONDITIONS_OF_USE_NOT_SATISFIED;
goto discardTransaction;
}
Expand Down
6 changes: 3 additions & 3 deletions src/handle_check_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void handle_check_address(check_address_parameters_t* params, btchip_altcoin_con
unsigned char compressed_public_key[33];
PRINTF("Params on the address %d\n",(unsigned int)params);
PRINTF("Address to check %s\n",params->address_to_check);
PRINTF("Insied handle_check_address\n");
PRINTF("Inside handle_check_address\n");
params->result = 0;
if (params->address_to_check == 0) {
PRINTF("Address to check == 0\n");
Expand Down Expand Up @@ -126,9 +126,9 @@ void handle_check_address(check_address_parameters_t* params, btchip_altcoin_con
}
if ((strlen(address) != strlen(params->address_to_check)) ||
os_memcmp(address, params->address_to_check, strlen(address)) != 0) {
PRINTF("Addresses doesn't match\n");
PRINTF("Addresses don't match\n");
return;
}
PRINTF("Addresses match\n");
PRINTF("Addresses match\n");
params->result = 1;
}
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2515,13 +2515,13 @@ uint8_t prepare_full_output(uint8_t checkOnly) {
}
if (btchip_context_D.tmpCtx.output.changeInitialized && !changeFound) {
if (!checkOnly) {
PRINTF("Error : change output not found");
PRINTF("Error : Change output not found");
}
goto error;
}
if ((numberOutputs > 1) && (!changeFound || !specialOpFound)) {
if (!checkOnly) {
PRINTF("Error : too many inputs");
PRINTF("Error : Too many inputs");
}
goto error;
}
Expand Down