Made all EIP712 code use the same function for response APDUs

This commit is contained in:
Alexandre Paillier
2022-07-06 10:03:42 +02:00
parent 47c1f73736
commit d1d1aa73e6
4 changed files with 8 additions and 10 deletions

View File

@@ -14,9 +14,9 @@
#include "filtering.h"
#include "common_712.h"
static void handle_eip712_return_code(bool ret)
void handle_eip712_return_code(bool success)
{
if (ret)
if (success)
{
apdu_response_code = APDU_RESPONSE_OK;
}
@@ -25,7 +25,7 @@ static void handle_eip712_return_code(bool ret)
// Send back the response, do not restart the event loop
io_exchange(CHANNEL_APDU | IO_RETURN_AFTER_TX, 2);
if (!ret)
if (!success)
{
eip712_context_deinit();
}