From 461f69e79dd9e7f614ef594954e7ef665a9f1e32 Mon Sep 17 00:00:00 2001 From: Badiboy Date: Mon, 27 Mar 2023 13:57:22 +0300 Subject: [PATCH] Jetton methods now returns lists instead of first-level token --- pyTONPublicAPI/api.py | 4 ++-- pyTONPublicAPI/version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyTONPublicAPI/api.py b/pyTONPublicAPI/api.py index 96a152d..4ecccb2 100644 --- a/pyTONPublicAPI/api.py +++ b/pyTONPublicAPI/api.py @@ -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): """ @@ -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): """ diff --git a/pyTONPublicAPI/version.py b/pyTONPublicAPI/version.py index 2f75478..631c357 100644 --- a/pyTONPublicAPI/version.py +++ b/pyTONPublicAPI/version.py @@ -1,3 +1,3 @@ # Versions should comply with PEP440. # This line is parsed in setup.py: -__version__ = '0.1' +__version__ = '0.1.1'