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

@@ -60,15 +60,10 @@ void handleGetPublicKey(uint8_t p1,
THROW(APDU_RESPONSE_INVALID_DATA);
}
#ifndef NO_CONSENT
if (p1 == P1_NON_CONFIRM)
#endif // NO_CONSENT
{
if (p1 == P1_NON_CONFIRM) {
*tx = set_result_get_publicKey();
THROW(APDU_RESPONSE_OK);
}
#ifndef NO_CONSENT
else {
} else {
snprintf(strings.common.fullAddress,
sizeof(strings.common.fullAddress),
"0x%.*s",
@@ -79,5 +74,4 @@ void handleGetPublicKey(uint8_t p1,
*flags |= IO_ASYNCH_REPLY;
}
#endif // NO_CONSENT
}