Skip to content
Snippets Groups Projects

bugfix-5311

Merged Roman Khlopkov requested to merge bugfix-5311 into release-3.0
1 file
+ 8
2
Compare changes
  • Side-by-side
  • Inline
@@ -178,7 +178,10 @@ PyObject *dap_chain_ledger_calc_balance_py(PyObject *self, PyObject *args){
@@ -178,7 +178,10 @@ PyObject *dap_chain_ledger_calc_balance_py(PyObject *self, PyObject *args){
const char *token_ticker;
const char *token_ticker;
if (!PyArg_ParseTuple(args, "O|s", &addr, &token_ticker))
if (!PyArg_ParseTuple(args, "O|s", &addr, &token_ticker))
return NULL;
return NULL;
uint64_t res = dap_chain_ledger_calc_balance(((PyDapChainLedgerObject*)self)->ledger, ((PyDapChainAddrObject*)addr)->addr, token_ticker);
uint64_t res = dap_chain_uint128_to(
 
dap_chain_ledger_calc_balance(
 
((PyDapChainLedgerObject*)self)->ledger,
 
((PyDapChainAddrObject*)addr)->addr, token_ticker));
return Py_BuildValue("k", res);
return Py_BuildValue("k", 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){
@@ -186,7 +189,10 @@ PyObject *dap_chain_ledger_calc_balance_full_py(PyObject *self, PyObject *args){
@@ -186,7 +189,10 @@ PyObject *dap_chain_ledger_calc_balance_full_py(PyObject *self, PyObject *args){
const char *token_ticker;
const char *token_ticker;
if (!PyArg_ParseTuple(args, "O|s", &addr, &token_ticker))
if (!PyArg_ParseTuple(args, "O|s", &addr, &token_ticker))
return NULL;
return NULL;
uint64_t res = dap_chain_ledger_calc_balance_full(((PyDapChainLedgerObject*)self)->ledger, ((PyDapChainAddrObject*)addr)->addr, token_ticker);
uint64_t res = dap_chain_uint128_to(
 
dap_chain_ledger_calc_balance_full(
 
((PyDapChainLedgerObject*)self)->ledger,
 
((PyDapChainAddrObject*)addr)->addr, token_ticker));
return Py_BuildValue("k", res);
return Py_BuildValue("k", res);
}
}
PyObject *dap_chain_ledger_tx_find_by_hash_py(PyObject *self, PyObject *args){
PyObject *dap_chain_ledger_tx_find_by_hash_py(PyObject *self, PyObject *args){
Loading