Skip to content

Commit

Permalink
get_contract_source_code_coverage; 3.6.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hecate2 committed Jan 10, 2024
1 parent 9eac901 commit a1655bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion neo_fairy_client/rpc/fairy_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a1655bc

Please sign in to comment.