Skip to content

Commit

Permalink
Jetton methods now returns lists instead of first-level token
Browse files Browse the repository at this point in the history
  • Loading branch information
Badiboy committed Mar 27, 2023
1 parent 0b76c0e commit 461f69e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyTONPublicAPI/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def jetton_get_balances(self, address = None):
:return:
"""
method = "jetton/getBalances"
return self.__request(method, address = address)
return self.__request(method, address = address).get("balances")

def jetton_get_history(self, address = None, jetton_master = None, limit = 100):
"""
Expand All @@ -466,7 +466,7 @@ def jetton_get_history(self, address = None, jetton_master = None, limit = 100):
:return:
"""
method = "jetton/getHistory"
return self.__request(method, address = address, jetton_master = jetton_master, limit = limit)
return self.__request(method, address = address, jetton_master = jetton_master, limit = limit).get("events")

def jetton_get_info(self, address = None):
"""
Expand Down
2 changes: 1 addition & 1 deletion pyTONPublicAPI/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Versions should comply with PEP440.
# This line is parsed in setup.py:
__version__ = '0.1'
__version__ = '0.1.1'

0 comments on commit 461f69e

Please sign in to comment.