From 07f2792e559ce6423013667433e476332edf5bbe Mon Sep 17 00:00:00 2001
From: "alexey.stratulat" <alexey.stratulat@demlabs.net>
Date: Fri, 7 Oct 2022 21:14:30 +0700
Subject: [PATCH] [*] Fixed the work of the ledger test.

---
 modules/chain/tests/dap_chain_ledger_tests.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/chain/tests/dap_chain_ledger_tests.c b/modules/chain/tests/dap_chain_ledger_tests.c
index d7c019e9f3..6780258f57 100644
--- a/modules/chain/tests/dap_chain_ledger_tests.c
+++ b/modules/chain/tests/dap_chain_ledger_tests.c
@@ -358,7 +358,8 @@ void dap_chain_ledger_test_write_back_list(dap_ledger_t *a_ledger, dap_cert_t *a
 }
 
 void dap_chain_ledger_test_run(void){
-    dap_chain_net_id_t l_iddn = dap_chain_net_id_from_str("0x0xFA0");
+    dap_chain_net_id_t l_iddn = {0};
+    dap_sscanf("0xFA0", "0x%16"DAP_UINT64_FORMAT_x, &l_iddn.uint64);
     dap_print_module_name("dap_chain_ledger");
     uint16_t l_flags = 0;
     l_flags |= DAP_CHAIN_LEDGER_CHECK_TOKEN_EMISSION;
@@ -412,4 +413,4 @@ void dap_chain_ledger_test_run(void){
     dap_chain_ledger_test_double_spending(l_ledger, &l_hash_btx, l_cert->enc_key, l_iddn);
     dap_chain_ledger_test_excess_supply(l_ledger, l_cert, &l_addr);
     dap_chain_ledger_test_write_back_list(l_ledger, l_cert, l_iddn);
-}
\ No newline at end of file
+}
-- 
GitLab