Skip to content

Commit

Permalink
add get_libraries method
Browse files Browse the repository at this point in the history
  • Loading branch information
yungwine authored and dungeon-master-666 committed Dec 8, 2023
1 parent 8ce942b commit 9c6d7d9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pytonlib/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,3 +790,14 @@ async def get_token_data(self, address: str):
result['content'] = content
result['contract_type'] = contract_type
return result

async def get_libraries(self, library_list: list):
"""
:param library_list: list of base64-encoded libraries hashes
"""

request = {
'@type': 'smc.getLibraries',
'library_list': library_list
}
return await self.tonlib_wrapper.execute(request, timeout=self.tonlib_timeout)

0 comments on commit 9c6d7d9

Please sign in to comment.