Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
chcmedeiros committed May 15, 2024
1 parent 509ef06 commit a0344b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/src/parser_print_txn.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,12 @@ static parser_error_t printMaspTransferTxn( const parser_context_t *ctx,
getSpendfromIndex(spend_index, &spend);
}

uint8_t tmp_idx = 0;
// Get pointer to the outputs
bytes_t out = ctx->tx_obj->transaction.sections.maspBuilder.builder.sapling_builder.outputs;

// For each output, we will print 3 items, if we have more then 3 items we need to rebase the display Idx to keep printing the outputs
if(n_dest_items > 3 ) {
if(displayIdx >= 7 && displayIdx <= n_send_items + n_dest_items && orig_idx <= (n_send_items + n_dest_items)) {
tmp_idx = displayIdx;
displayIdx = (displayIdx % 6) + 3;
if (displayIdx == 4 && pageIdx == 0) {
// If displayIdx was rebase to first item to be printed, we need to increment the out index
Expand Down

0 comments on commit a0344b7

Please sign in to comment.