Skip to content

Commit

Permalink
Add a PRINTF of amounts in ERR_SILENT_MODE_CHECK_FAILED
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Oct 4, 2023
1 parent 994b1ce commit ad2786e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src_features/signTx/logic_signTx.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,8 @@ void finalizeParsing(bool direct) {
// Ensure the values are the same that the ones that have been previously validated
if (strcmp(strings.common.fullAmount, displayBuffer) != 0) {
PRINTF("ERR_SILENT_MODE_CHECK_FAILED, amount check failed\n");
PRINTF("Expected %s\n", strings.common.fullAmount);
PRINTF("Received %s\n", displayBuffer);
THROW(ERR_SILENT_MODE_CHECK_FAILED);
}
} else {
Expand Down

0 comments on commit ad2786e

Please sign in to comment.