From 5edeed556d7c1afbb6d2e7ff78ea3d1f5750b869 Mon Sep 17 00:00:00 2001 From: dingxin Date: Fri, 21 Jun 2019 17:29:52 +0800 Subject: [PATCH] add property --- ontology/contract/neo/invoke_function.py | 12 ++++++++++++ setup.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ontology/contract/neo/invoke_function.py b/ontology/contract/neo/invoke_function.py index 289f056..f641f6f 100644 --- a/ontology/contract/neo/invoke_function.py +++ b/ontology/contract/neo/invoke_function.py @@ -27,6 +27,18 @@ def __init__(self, func_name: str, parameters: list = None, return_type: str = ' self.__parameters = parameters self.__return_type = return_type + @property + def func_name(self): + return self.__func_name + + @property + def parameters(self): + return self.__parameters + + @property + def return_type(self): + return self.__return_type + def set_params_value(self, *params): if len(self.__parameters) != 0: self.__parameters = list() diff --git a/setup.py b/setup.py index f0b1980..92b2312 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ setup( name='ontology-python-sdk', - version='2.0.4', + version='2.0.5', description='Comprehensive Python library for the Ontology BlockChain.', long_description=long_description, long_description_content_type="text/markdown",