From b2f44102b7803434983a8b644db76b9f6be3d035 Mon Sep 17 00:00:00 2001 From: Roman Khlopkov <roman.khlopkov@demlabs.net> Date: Tue, 23 Nov 2021 12:41:59 +0300 Subject: [PATCH] [+] New emission datum format --- modules/cellframe-sdk/chain/src/wrapping_dap_chain_ledger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6984fc44..388ddb68 100644 --- a/modules/cellframe-sdk/chain/src/wrapping_dap_chain_ledger.c +++ b/modules/cellframe-sdk/chain/src/wrapping_dap_chain_ledger.c @@ -54,7 +54,7 @@ PyObject *dap_chain_ledger_token_emission_add_py(PyObject *self, PyObject *args) size_t token_emissiom_size; if (!PyArg_ParseTuple(args, "O|n", &token_emission, &token_emissiom_size)) return NULL; - int res = dap_chain_ledger_token_emission_add(((PyDapChainLedgerObject*)self)->ledger, ((PyDapChainDatumTokenEmissionObject*)token_emission)->token_emission, token_emissiom_size); + int res = dap_chain_ledger_token_emission_add(((PyDapChainLedgerObject*)self)->ledger, (byte_t *)((PyDapChainDatumTokenEmissionObject*)token_emission)->token_emission, token_emissiom_size); return PyLong_FromLong(res); } PyObject *dap_chain_ledger_token_emission_find_py(PyObject *self, PyObject *args){ -- GitLab