Merge pull request #469 from LedgerHQ/fbe/display_amounts_when_ERR_SILENT_MODE_CHECK_FAILED

Add a PRINTF of amounts in ERR_SILENT_MODE_CHECK_FAILED
This commit is contained in:
François Beutin
2023-10-04 14:56:13 +02:00
committed by GitHub

View File

@@ -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 {