Skip to content

Commit

Permalink
Allow interaction with swap to continue even when an invalid APDU is …
Browse files Browse the repository at this point in the history
…sent first
  • Loading branch information
bigspider committed Nov 24, 2022
1 parent dd81561 commit 51dbb1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ void app_main() {
if (G_swap_state.called_from_swap) {
if (cmd.cla != CLA_APP) {
io_send_sw(SW_CLA_NOT_SUPPORTED);
return;
continue;
}
if (cmd.ins != GET_EXTENDED_PUBKEY && cmd.ins != GET_WALLET_ADDRESS &&
cmd.ins != SIGN_PSBT && cmd.ins != GET_MASTER_FINGERPRINT) {
PRINTF(
"Only GET_EXTENDED_PUBKEY, GET_WALLET_ADDRESS, SIGN_PSBT and "
"GET_MASTER_FINGERPRINT can be called during swap\n");
io_send_sw(SW_INS_NOT_SUPPORTED);
return;
continue;
}
}

Expand Down

0 comments on commit 51dbb1a

Please sign in to comment.