Better handling of missing EIP721 error codes + add a missing one for EIP712 filtering signature checking
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
void handle_eip712_return_code(bool success) {
|
||||
if (success) {
|
||||
apdu_response_code = APDU_RESPONSE_OK;
|
||||
} else if (apdu_response_code == APDU_RESPONSE_OK) { // somehow not set
|
||||
apdu_response_code = APDU_RESPONSE_ERROR_NO_INFO;
|
||||
}
|
||||
*(uint16_t *) G_io_apdu_buffer = __builtin_bswap16(apdu_response_code);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user