Remove useless flag NO_CONSENT

This commit is contained in:
Charles-Edouard de la Vergne
2024-04-29 18:22:22 +02:00
parent 41c9ece546
commit ddd5f3d0d9
7 changed files with 7 additions and 44 deletions

View File

@@ -535,20 +535,13 @@ end:
void finalizeParsing(bool direct) {
bool use_standard_UI = true;
bool no_consent_check;
if (!finalize_parsing_helper(direct, &use_standard_UI)) {
return;
}
// If called from swap, the user has already validated a standard transaction
// And we have already checked the fields of this transaction above
no_consent_check = G_called_from_swap && use_standard_UI;
#ifdef NO_CONSENT
no_consent_check = true;
#endif // NO_CONSENT
if (no_consent_check) {
if (G_called_from_swap && use_standard_UI) {
io_seproxyhal_touch_tx_ok(NULL);
} else {
if (use_standard_UI) {