From 00eccfb0c325dab6211a75f5c607dbc13213566a Mon Sep 17 00:00:00 2001 From: "alexey.stratulat" <alexey.stratulat@demlabs.net> Date: Sat, 16 Nov 2019 01:12:15 +0700 Subject: [PATCH] [*] Changed the wrapping of functions in dap_chain_datum_tx to match the new version of the library. --- include/wrapping_dap_chain_datum_tx.h | 4 ++-- src/wrapping_dap_chain_datum_tx.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/wrapping_dap_chain_datum_tx.h b/include/wrapping_dap_chain_datum_tx.h index 1b2564ec..62203de7 100644 --- a/include/wrapping_dap_chain_datum_tx.h +++ b/include/wrapping_dap_chain_datum_tx.h @@ -23,7 +23,7 @@ PyObject *TX_ITEM_TYPE_SIG_PY(void); PyObject *TX_ITEM_TYPE_TOKEN_PY(void); PyObject *TX_ITEM_TYPE_IN_COND_PY(void); PyObject *TX_ITEM_TYPE_OUT_COND_PY(void); -PyObject *TX_ITEM_TYPE_OUT_SERVICE_RECEIPT_PY(void); +PyObject *TX_ITEM_TYPE_RECEIPT_PY(void); static PyMethodDef PyDapChainTxItemTypeObjectMethods[] ={ {"TX_ITEM_TYPE_IN", (PyCFunction)TX_ITEM_TYPE_IN_PY, METH_NOARGS | METH_STATIC, ""}, @@ -33,7 +33,7 @@ static PyMethodDef PyDapChainTxItemTypeObjectMethods[] ={ {"TX_ITEM_TYPE_TOKEN", (PyCFunction)TX_ITEM_TYPE_TOKEN_PY, METH_NOARGS | METH_STATIC, ""}, {"TX_ITEM_TYPE_IN_COND", (PyCFunction)TX_ITEM_TYPE_IN_COND_PY, METH_NOARGS | METH_STATIC, ""}, {"TX_ITEM_TYPE_OUT_COND", (PyCFunction)TX_ITEM_TYPE_OUT_COND_PY, METH_NOARGS | METH_STATIC, ""}, - {"TX_ITEM_TYPE_OUT_SERVICE_RECEIPT", (PyCFunction)TX_ITEM_TYPE_OUT_SERVICE_RECEIPT_PY, + {"TX_ITEM_TYPE_RECEIPT", (PyCFunction)TX_ITEM_TYPE_RECEIPT_PY, METH_NOARGS | METH_STATIC, ""}, {NULL, NULL, 0, NULL} }; diff --git a/src/wrapping_dap_chain_datum_tx.c b/src/wrapping_dap_chain_datum_tx.c index 49bc2c7d..8a81df21 100644 --- a/src/wrapping_dap_chain_datum_tx.c +++ b/src/wrapping_dap_chain_datum_tx.c @@ -23,8 +23,8 @@ PyObject *TX_ITEM_TYPE_IN_COND_PY(void){ PyObject *TX_ITEM_TYPE_OUT_COND_PY(void){ return PyLong_FromLong(TX_ITEM_TYPE_OUT_COND); } -PyObject *TX_ITEM_TYPE_OUT_SERVICE_RECEIPT_PY(void){ - return PyLong_FromLong(TX_ITEM_TYPE_OUT_SERVICE_RECEIPT); +PyObject *TX_ITEM_TYPE_RECEIPT_PY(void){ + return PyLong_FromLong(TX_ITEM_TYPE_RECEIPT); } /* -------------------------------------- */ -- GitLab