From f5ff3d12df37f470f8d9eda92db334535e778f45 Mon Sep 17 00:00:00 2001
From: Olzhas <oljas.jarasbaev@demlabs.net>
Date: Wed, 23 Oct 2024 00:13:31 +0700
Subject: [PATCH] [*] fix err

---
 dap-sdk                              | 2 +-
 modules/net/dap_chain_node_cli_cmd.c | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dap-sdk b/dap-sdk
index af95f2d61f..6a4bd9f931 160000
--- a/dap-sdk
+++ b/dap-sdk
@@ -1 +1 @@
-Subproject commit af95f2d61ffca0151c825a2e7f468971397748da
+Subproject commit 6a4bd9f931e0645695c83e98113bbbaf0ae9d0c1
diff --git a/modules/net/dap_chain_node_cli_cmd.c b/modules/net/dap_chain_node_cli_cmd.c
index 84a160c948..7852ab7015 100644
--- a/modules/net/dap_chain_node_cli_cmd.c
+++ b/modules/net/dap_chain_node_cli_cmd.c
@@ -8611,12 +8611,11 @@ int com_exec_cmd(int argc, char **argv, void **reply) {
     }
 
     //send response
-    char * l_response = NULL;
+    json_object * l_response = NULL;
     dap_json_rpc_request_send(l_client_internal, l_request, &l_response);
 
     if (l_response) {
-        json_object * l_json_response = json_tokener_parse(l_response);
-        json_object_array_add(*a_json_arr_reply, l_json_response);
+        json_object_array_add(*a_json_arr_reply, l_response);
     } else {
         json_object_array_add(*a_json_arr_reply, json_object_new_string("Empty reply"));
     }
-- 
GitLab