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

[*] Wrapping ledger fix

parent 1e2c2c92
No related branches found
No related tags found
2 merge requests!68hotfix-4954,!65hotfix-4954
...@@ -195,7 +195,7 @@ PyObject *dap_chain_ledger_calc_balance_py(PyObject *self, PyObject *args){ ...@@ -195,7 +195,7 @@ PyObject *dap_chain_ledger_calc_balance_py(PyObject *self, PyObject *args){
((PyDapChainLedgerObject*)self)->ledger, ((PyDapChainLedgerObject*)self)->ledger,
((PyDapChainAddrObject*)addr)->addr, token_ticker); ((PyDapChainAddrObject*)addr)->addr, token_ticker);
uint64_t res = dap_chain_uint128_to(balance); uint64_t res = dap_chain_uint128_to(balance);
char* coins = dap_chain_balance_to_coins(res); char* coins = dap_chain_balance_to_coins(balance);
return Py_BuildValue("sk", coins, res); return Py_BuildValue("sk", coins, res);
} }
PyObject *dap_chain_ledger_calc_balance_full_py(PyObject *self, PyObject *args){ PyObject *dap_chain_ledger_calc_balance_full_py(PyObject *self, PyObject *args){
......
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