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

@@ -75,20 +75,14 @@ void handleGetEth2PublicKey(uint8_t p1,
getEth2PublicKey(bip32.path, bip32.length, tmpCtx.publicKeyContext.publicKey.W);
#ifndef NO_CONSENT
if (p1 == P1_NON_CONFIRM)
#endif // NO_CONSENT
{
if (p1 == P1_NON_CONFIRM) {
*tx = set_result_get_eth2_publicKey();
THROW(0x9000);
}
#ifndef NO_CONSENT
else {
} else {
ui_display_public_eth2();
*flags |= IO_ASYNCH_REPLY;
}
#endif // NO_CONSENT
}
#endif