From 4df53f5f56e64fac84bb628e0ae6fa87860f3401 Mon Sep 17 00:00:00 2001 From: TamtamHero <10632523+TamtamHero@users.noreply.github.com> Date: Tue, 5 Jan 2021 16:43:00 +0100 Subject: [PATCH] tmp undoing change breaking swap retro-compatibility --- src/main.c | 9 +++++---- src/swap_lib_calls.h | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index efe1e64..d939aff 100644 --- a/src/main.c +++ b/src/main.c @@ -775,10 +775,11 @@ static void library_main_helper(struct libargs_s *args) { } break; case GET_PRINTABLE_AMOUNT: - // ensure result is zero if an exception is thrown - args->get_printable_amount->result = 0; - args->get_printable_amount->result = - handle_get_printable_amount(args->get_printable_amount, args->chain_config); + // ensure result is zero if an exception is thrown (compatibility breaking, disabled + // until LL is ready) + // args->get_printable_amount->result = 0; + // args->get_printable_amount->result = + handle_get_printable_amount(args->get_printable_amount, args->chain_config); break; default: break; diff --git a/src/swap_lib_calls.h b/src/swap_lib_calls.h index 603347d..c041964 100644 --- a/src/swap_lib_calls.h +++ b/src/swap_lib_calls.h @@ -36,7 +36,7 @@ typedef struct get_printable_amount_parameters_s { bool is_fee; // OUT char printable_amount[30]; - int result; + // int result; } get_printable_amount_parameters_t; typedef struct create_transaction_parameters_s {