Skip to content

Commit

Permalink
fix(verify_address): remove redefinition of rtn
Browse files Browse the repository at this point in the history
  • Loading branch information
keiff3r committed Nov 28, 2024
1 parent b2e46c4 commit fba65e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/handler/verify_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ int handler_verify_address(buffer_t *cdata, bool is_new_address) {

// This function will return the number of bytes encoded, or -1 on error.
// TODO: Move this inside the function ui_display_verify_address()
int rtn = address_to_base58(account_address,
sizeof(account_address),
G_context.verify_address_info.address,
address_len);
rtn = address_to_base58(account_address,
sizeof(account_address),
G_context.verify_address_info.address,
address_len);
if (rtn < 0) {
return io_send_sw(SW_ADDRESS_ENCODING_FAIL);
}
Expand Down

0 comments on commit fba65e7

Please sign in to comment.