Skip to content

Commit

Permalink
Add help func doc
Browse files Browse the repository at this point in the history
Signed-off-by: xichen1 <xichen.pan@gmail.com>
  • Loading branch information
xichen1 committed Nov 28, 2023
1 parent 85e5251 commit 137cac4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/api-engine/api/routes/chaincode/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ class ChainCodeViewSet(viewsets.ViewSet):
permission_classes = [IsAuthenticated, ]

def _read_cc_pkg(self, pk, filename, ccpackage_path):
"""
read and extract chaincode package meta info
:pk: chaincode id
:filename: uploaded chaincode package filename
:ccpackage_path: chaincode package path
"""
try:
meta_path = os.path.join(ccpackage_path, "metadata.json")
# extract metadata file
Expand Down

0 comments on commit 137cac4

Please sign in to comment.