Skip to content
Snippets Groups Projects
Commit 0ff4e664 authored by Roman Khlopkov's avatar Roman Khlopkov 🔜
Browse files

[*] Chain address to string conversion fix

parent 4dcaa845
No related branches found
No related tags found
No related merge requests found
Subproject commit 80d3340956eb2a98895611f91502e7eb6896c674
Subproject commit 55dcc5d64f087b9bb6123ea32462e793e77d9a9f
......@@ -92,9 +92,8 @@ PyObject *dap_chain_addr_to_str_py(PyObject *self, PyObject *args){
if (!PyArg_ParseTuple(args, "O", &obj_chain_addr))
return NULL;
const dap_chain_addr_t *addr = ((PyDapChainAddrObject*)obj_chain_addr)->addr;
const char *res = dap_chain_addr_to_str(addr);
const char *res = dap_chain_addr_to_str_static(addr);
PyObject *l_obj_res = Py_BuildValue("s", res);
DAP_DELETE(res);
return l_obj_res;
}
......@@ -155,7 +154,7 @@ PyObject *dap_chain_addr_check_sum_py(PyObject *self, PyObject *args){
}
PyObject *obj_addr_str(PyObject *self){
const char *l_addr = dap_chain_addr_to_str(((PyDapChainAddrObject*)self)->addr);
const char *l_addr = dap_chain_addr_to_str_static(((PyDapChainAddrObject*)self)->addr);
PyObject* l_obj_res = Py_BuildValue("s", l_addr);
return l_obj_res;
}
......
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