Skip to content

Commit

Permalink
handle address improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
chcmedeiros committed Jan 13, 2025
1 parent 8d49d0a commit 501308f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/src/common/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ __attribute__((section(".boot"))) int main(int arg0) {
}
#endif
} else {
// The app has been launched from the dashboard
G_swap_state.called_from_swap = false;
BEGIN_TRY
{
TRY
Expand Down
4 changes: 2 additions & 2 deletions app/src/swap/handle_check_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


void handle_check_address(check_address_parameters_t *params) {
if (params == NULL || params->address_to_check == 0) {
if (params == NULL || params->address_to_check == NULL) {
return;
}

Expand All @@ -41,7 +41,7 @@ void handle_check_address(check_address_parameters_t *params) {
}

for (uint32_t i = 0; i < HDPATH_LEN_DEFAULT; i++) {
readU32BE(params->address_parameters + 2 + (i * 4), &bip32_path[i]);
readU32BE(params->address_parameters + 1 + (i * 4), &bip32_path[i]);
}

char address_computed[100] = {0};
Expand Down

0 comments on commit 501308f

Please sign in to comment.