Skip to content

Commit

Permalink
refactor: refactor the tx signing page using nbgl_useCaseReviewStream…
Browse files Browse the repository at this point in the history
…ingStart (#63)
  • Loading branch information
overcat committed Jul 24, 2024
1 parent ad84633 commit 5a5e448
Show file tree
Hide file tree
Showing 1,927 changed files with 170 additions and 303 deletions.
15 changes: 6 additions & 9 deletions libstellar/formatter.c
Original file line number Diff line number Diff line change
Expand Up @@ -2263,17 +2263,14 @@ static const format_function_t formatters[] = {&format_create_account,

static bool format_confirm_operation(formatter_data_t *fdata) {
if (fdata->envelope->tx_details.tx.operations_count > 1) {
size_t length;
STRLCPY(fdata->caption, "Operation ", fdata->caption_len);
length = strlen(fdata->caption);
STRLCPY(fdata->caption, "Operation", fdata->caption_len);
FORMATTER_CHECK(print_uint64_num(fdata->envelope->tx_details.tx.operation_index + 1,
fdata->caption + length,
fdata->caption_len - length))
STRLCAT(fdata->caption, " of ", fdata->caption_len);
length = strlen(fdata->caption);
fdata->value,
fdata->value_len))
STRLCAT(fdata->value, " of ", fdata->value_len)
FORMATTER_CHECK(print_uint64_num(fdata->envelope->tx_details.tx.operations_count,
fdata->caption + length,
fdata->caption_len - length))
fdata->value + strlen(fdata->value),
fdata->value_len - strlen(fdata->value)))

FORMATTER_CHECK(push_to_formatter_stack(
((format_function_t) PIC(formatters[fdata->envelope->tx_details.tx.op_details.type]))));
Expand Down
Loading

0 comments on commit 5a5e448

Please sign in to comment.