From 538cef37969e3916a910203e2558307a2bafbb24 Mon Sep 17 00:00:00 2001
From: "alexey.stratulat" <alexey.stratulat@demlabs.net>
Date: Thu, 9 May 2024 16:40:38 +0000
Subject: [PATCH] Port 11464

---
 modules/type/dag/dap_chain_cs_dag.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/type/dag/dap_chain_cs_dag.c b/modules/type/dag/dap_chain_cs_dag.c
index e79dc0fe55..a18bd709e6 100644
--- a/modules/type/dag/dap_chain_cs_dag.c
+++ b/modules/type/dag/dap_chain_cs_dag.c
@@ -1412,7 +1412,7 @@ static int s_cli_dag(int argc, char ** argv, void **a_str_reply)
             // dap_chain_net_sync_all(l_net);
         }
         if (strcmp(l_round_cmd_str, "find") == 0) {
-            dap_cli_server_cmd_find_option_val(argv, arg_index, arg_index + 2, "-datum", &l_datum_hash_str);
+            dap_cli_server_cmd_find_option_val(argv, arg_index, argc, "-datum", &l_datum_hash_str);
             char *l_datum_in_hash = NULL;
             if (l_datum_hash_str) {
                 if(!dap_strncmp(l_datum_hash_str, "0x", 2) || !dap_strncmp(l_datum_hash_str, "0X", 2)) {
-- 
GitLab