From 92087061f2699c714b24ab7e45246be01704d322 Mon Sep 17 00:00:00 2001 From: Lorenzo Ronzani Date: Thu, 19 Dec 2024 16:05:18 +0100 Subject: [PATCH] Integrating the requested changes --- libs/sdk-common/src/input_parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/sdk-common/src/input_parser.rs b/libs/sdk-common/src/input_parser.rs index 2008544a9..8d8c282c2 100644 --- a/libs/sdk-common/src/input_parser.rs +++ b/libs/sdk-common/src/input_parser.rs @@ -205,8 +205,6 @@ pub async fn parse( input.to_string() }; - println!("Input {}, input_str {}", input, input_str); - input = input_str.as_str(); if let Ok(input_type) = parse_core(input).await { @@ -242,6 +240,8 @@ async fn bip353_parse( // Decode TXT data match String::from_utf8(txt_data) { Ok(decoded) => { + // The idea is to return from this parse only the BIP21 address and do logic on it inside the parse_core function. + // return Some(decoded); if let Some((_, bolt12_address)) = decoded.split_once(BOLT12_PREFIX) { return Some(bolt12_address.to_string()); }