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

[*] Fix. Edited structures.

parent feabdacc
No related branches found
No related tags found
1 merge request!26Support 3689
......@@ -43,7 +43,7 @@ PyObject *dap_chain_addr_fill_py(PyObject *self, PyObject *args){
if (!PyArg_ParseTuple(args, "O|O|O", &addr, &key, &net_id))
return NULL;
dap_chain_addr_fill(((PyDapChainAddrObject*)addr)->addr, ((PyCryptoKeyObject*)key)->key,
((PyDapChainNetIdObject*)net_id)->net_id);
&(((PyDapChainNetIdObject*)net_id)->net_id));
return PyLong_FromLong(0);
}
......
......@@ -7,7 +7,7 @@ PyObject *PyDapChainDatumObject_new(PyTypeObject *type_object, PyObject *args, P
uint16_t type_id;
PyBytesObject *bytes;
size_t data_size;
if (!PyArg_ParseTuple(args, "h|S|n", &type_id, &bytes, &data_size))
if (!PyArg_ParseTuple(args, "H|S|n", &type_id, &bytes, &data_size))
return NULL;
PyDapChainDatumObject *obj = (PyDapChainDatumObject*)PyType_GenericNew(type_object, args, kwds);
void* bytes_v = (void *)PyBytes_AsString((PyObject*)bytes);
......
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