Skip to content

Commit

Permalink
refactor handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
jleni committed May 14, 2024
1 parent 5006bbd commit 9c617f7
Show file tree
Hide file tree
Showing 8 changed files with 744 additions and 650 deletions.
3 changes: 2 additions & 1 deletion app/src/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ zxerr_t addr_getItem(int8_t displayIdx,
return zxerr_ok;

case addr_sapling_div:
snprintf(outKey, outKeyLen, "Shielded with div");
snprintf(outKey, outKeyLen, "Shielded w/div");
pageString(outVal, outValLen, (char *)(G_io_apdu_buffer + VIEW_ADDRESS_OFFSET_SAPLING), pageIdx,
pageCount);
return zxerr_ok;
Expand All @@ -71,6 +71,7 @@ zxerr_t addr_getItem(int8_t displayIdx,
return zxerr_no_data;
}

// FIXME: in the case of sapling, the path should be ZIP32 (3, elements, etc..)
snprintf(outKey, outKeyLen, "Your Path");
char buffer[300];
bip32_to_str(buffer, sizeof(buffer), hdPath, HDPATH_LEN_DEFAULT);
Expand Down

0 comments on commit 9c617f7

Please sign in to comment.