From ea45baa4577ea6d8b5e40ff10c54a979e2d65747 Mon Sep 17 00:00:00 2001 From: sowle Date: Wed, 7 Jun 2023 00:18:22 +0200 Subject: [PATCH] fixed a bug in wallet2 where the explicit asset id was incorrectly set when it shouldn't have been --- src/currency_core/currency_format_utils.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/currency_core/currency_format_utils.cpp b/src/currency_core/currency_format_utils.cpp index 6c55d83a..56ef91cd 100644 --- a/src/currency_core/currency_format_utils.cpp +++ b/src/currency_core/currency_format_utils.cpp @@ -2207,10 +2207,9 @@ namespace currency } if (src_entr.is_native_coin()) - { native_coins_input_sum += src_entr.amount; - } - else + + if (src_entr.is_zc()) { // if at least one decoy output of a ZC input has a non-explicit asset id, then we can't say that all inputs are obviously native coins for(const tx_source_entry::output_entry& oe : in_context.outputs)