From 005cf5c85434511356417414a6d0098b1eb50980 Mon Sep 17 00:00:00 2001 From: Salvatore Ingala <6681844+bigspider@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:52:46 +0100 Subject: [PATCH] Make sure to return an error if a Thorchain swap is attempted on Nano S --- src/process_transaction.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/process_transaction.c b/src/process_transaction.c index 519c631a..03b60f79 100644 --- a/src/process_transaction.c +++ b/src/process_transaction.c @@ -211,6 +211,13 @@ static bool check_extra_id_extra_data(subcommand_e subcommand) { } if (has_extra_data) { +#ifdef TARGET_NANOS + // We make sure that we return an error on Nano S, if a payin_extra_data is provided. + // Nano S does not support Thorchain. + PRINTF("Error: payin_extra_data is not supported on Nano S.\n"); + return false; +#endif + // Size has to be header + 32 bytes hash if (extra->size != 33) { PRINTF("Error: incorrect payin_extra_data size %d != 33; payin_extra_data = %.*H\n",