We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee35bb3 commit f856296Copy full SHA for f856296
1 file changed
src/features/sign_tx/logic_sign_tx.c
@@ -576,6 +576,14 @@ uint16_t finalize_parsing(const txContext_t *context) {
576
// unreachable
577
os_sched_exit(0);
578
}
579
+ if (tmpContent.txContent.dataPresent && (G_swap_mode == SWAP_MODE_STANDARD)) {
580
+ PRINTF("Unvalidated calldata is not allowed in standard swap\n");
581
+ send_swap_error_simple(APDU_RESPONSE_MODE_CHECK_FAILED,
582
+ SWAP_EC_ERROR_WRONG_METHOD,
583
+ APP_CODE_DEFAULT);
584
+ // unreachable
585
+ os_sched_exit(0);
586
+ }
587
io_seproxyhal_touch_tx_ok();
588
sw = SWO_SUCCESS;
589
} else {
0 commit comments