From a1655bc9b49fc4bb76746db5cab770bd60ac8648 Mon Sep 17 00:00:00 2001 From: Hecate2 <2474101468@qq.com> Date: Wed, 10 Jan 2024 13:05:51 +0800 Subject: [PATCH] get_contract_source_code_coverage; 3.6.2.2 --- neo_fairy_client/rpc/fairy_client.py | 7 ++++++- setup.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/neo_fairy_client/rpc/fairy_client.py b/neo_fairy_client/rpc/fairy_client.py index 96804a0..5f8217a 100644 --- a/neo_fairy_client/rpc/fairy_client.py +++ b/neo_fairy_client/rpc/fairy_client.py @@ -1042,7 +1042,12 @@ def get_contract_opcode_coverage(self, scripthash: UInt160 = None) -> Dict[int, scripthash = scripthash or self.contract_scripthash result: Dict[str, bool] = self.meta_rpc_method_with_raw_result("getcontractopcodecoverage", [scripthash])['result'] return {int(k): v for k, v in result.items()} - + + def get_contract_source_code_coverage(self, scripthash: UInt160 = None) -> Dict[str, Dict[str, bool]]: + scripthash = scripthash or self.contract_scripthash + result: Dict[str, Dict[str, bool]] = self.meta_rpc_method_with_raw_result("getcontractsourcecodecoverage", [scripthash])['result'] + return result + def clear_contract_opcode_coverage(self, scripthash: UInt160 = None) -> Dict[int, bool]: scripthash = scripthash or self.contract_scripthash result: Dict[str, bool] = self.meta_rpc_method_with_raw_result("clearcontractopcodecoverage", [scripthash])['result'] diff --git a/setup.py b/setup.py index 39c8d04..a7b2045 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ long_description = fh.read() setuptools.setup( name="neo-fairy-client", - version="3.6.2.1", + version="3.6.2.2", author="Hecate2", author_email="hecate2@qq.com", description="Test & debug your Neo3 smart contracts",