diff --git a/CellFrame/python-cellframe_common.c b/CellFrame/python-cellframe_common.c index 86f06d4bab6bfbb2beadd3edba7d414fc16210ed..2ea6c41da23c5f2cfe7c7ed055a14acd54ea589e 100644 --- a/CellFrame/python-cellframe_common.c +++ b/CellFrame/python-cellframe_common.c @@ -87,8 +87,8 @@ PyObject *python_get_config_item(dap_config_t* a_config, const char *a_section, Py_RETURN_FALSE; } case DAP_CONFIG_ITEM_DECIMAL: { - int res = dap_config_get_item_uint32(a_config, a_section, a_key); - return Py_BuildValue("i", res); + int64_t res = dap_config_get_item_int64(a_config, a_section, a_key); + return Py_BuildValue("L", res); } case DAP_CONFIG_ITEM_STRING: { const char *res = dap_config_get_item_str(a_config, a_section, a_key); diff --git a/dists/python-modules/pycfhelpers b/dists/python-modules/pycfhelpers index 301fbb2f5fda66428a6a52b3384084b97ac79bf6..45b607694ee0786dd1edc7fb605695701f4866c7 160000 --- a/dists/python-modules/pycfhelpers +++ b/dists/python-modules/pycfhelpers @@ -1 +1 @@ -Subproject commit 301fbb2f5fda66428a6a52b3384084b97ac79bf6 +Subproject commit 45b607694ee0786dd1edc7fb605695701f4866c7 diff --git a/modules/cellframe-sdk/chain/src/libdap-chain-python.c b/modules/cellframe-sdk/chain/src/libdap-chain-python.c index ecc0a4c1ae701a028c87cc78b539e166776cf7b9..e826fa2e3dfd27d36205c13a0e0f3945b9efd27b 100644 --- a/modules/cellframe-sdk/chain/src/libdap-chain-python.c +++ b/modules/cellframe-sdk/chain/src/libdap-chain-python.c @@ -375,7 +375,7 @@ PyObject *dap_chain_net_add_atom_notify_callback(PyObject *self, PyObject *args) l_callback->arg = obj_arg; Py_INCREF(obj_func); Py_INCREF(obj_arg); - dap_chain_add_callback_notify(l_chain, _wrapping_dap_chain_atom_notify_handler, l_callback); + dap_chain_add_callback_notify(l_chain, _wrapping_dap_chain_atom_notify_handler, NULL, l_callback); Py_RETURN_NONE; } diff --git a/modules/cellframe-sdk/chain/src/wrapping_dap_chain_ledger.c b/modules/cellframe-sdk/chain/src/wrapping_dap_chain_ledger.c index 47420d77e03222eb17f7f9f55e2706cc11f49a14..585e2e6a836c9c91f1d8f52a03cc06aa37321b45 100644 --- a/modules/cellframe-sdk/chain/src/wrapping_dap_chain_ledger.c +++ b/modules/cellframe-sdk/chain/src/wrapping_dap_chain_ledger.c @@ -86,7 +86,7 @@ PyObject *dap_chain_ledger_tx_add_py(PyObject *self, PyObject *args){ return NULL; dap_hash_fast_t l_tx_hash; dap_hash_fast(obj_datum_tx->datum_tx, dap_chain_datum_tx_get_size(obj_datum_tx->datum_tx), &l_tx_hash); - int res = dap_ledger_tx_add(((PyDapChainLedgerObject*)self)->ledger, obj_datum_tx->datum_tx, &l_tx_hash, false); + int res = dap_ledger_tx_add(((PyDapChainLedgerObject*)self)->ledger, obj_datum_tx->datum_tx, &l_tx_hash, false, NULL); return PyLong_FromLong(res); } PyObject *dap_chain_ledger_token_add_py(PyObject *self, PyObject *args)