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

[*] New ledger create wrapping

parent 9f688d24
No related branches found
No related tags found
1 merge request!38features-4039
......@@ -2,10 +2,11 @@
PyObject *DapChainLedgerObject_create(PyTypeObject *type_object, PyObject *args, PyObject *kwds){
uint16_t check_flag;
if (!PyArg_ParseTuple(args, "H", &check_flag))
char *net_name;
if (!PyArg_ParseTuple(args, "H|s", &check_flag, &net_name))
return NULL;
PyDapChainLedgerObject *obj = (PyDapChainLedgerObject *)PyType_GenericNew(type_object, args, kwds);
obj->ledger = dap_chain_ledger_create(check_flag);
obj->ledger = dap_chain_ledger_create(check_flag, net_name);
return (PyObject *)obj;
}
void DapChainLedgerObject_free(PyDapChainLedgerObject* object){
......
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