Skip to content
Snippets Groups Projects
Commit 6748a965 authored by alexey.stratulat's avatar alexey.stratulat
Browse files

[*] Fixed a problem that the behavior in the dap_db_history_tx function was...

[*] Fixed a problem that the behavior in the dap_db_history_tx function was not processed if a transaction with the specified hash was not found.
parent 16dbfe8e
No related branches found
No related tags found
1 merge request!1069Bugfix 8582
Pipeline #25648 passed with stage
in 9 minutes and 23 seconds
...@@ -138,8 +138,10 @@ char* dap_db_history_tx(dap_chain_hash_fast_t* a_tx_hash, dap_chain_t * a_chain, ...@@ -138,8 +138,10 @@ char* dap_db_history_tx(dap_chain_hash_fast_t* a_tx_hash, dap_chain_t * a_chain,
return NULL; return NULL;
} }
const char *l_tx_token_ticker = dap_chain_ledger_tx_get_token_ticker_by_hash(a_chain->ledger, a_tx_hash); if (l_tx) {
dap_chain_datum_dump_tx(l_tx, l_tx_token_ticker, l_str_out, a_hash_out_type, a_tx_hash); const char *l_tx_token_ticker = dap_chain_ledger_tx_get_token_ticker_by_hash(a_chain->ledger, a_tx_hash);
dap_chain_datum_dump_tx(l_tx, l_tx_token_ticker, l_str_out, a_hash_out_type, a_tx_hash);
}
// if no history // if no history
if(!l_str_out->len) if(!l_str_out->len)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment